dataportals.org
dataportals.org copied to clipboard
Search cannot find records when terms included a special character
Where a record term (e.g. its Title) includes a special character (e.g. comma, exclamation, period ) the search will not return the record.
Test cases include:
- search for Ottawa, returns no results b/c 'Ottawa' always has comma after it in record
record can be found with other terms (e.g. search for ontario city feedback )
-
search for falls, returns no results b/c 'Falls' always has a comma after it in a record
record can be found with other search terms (e.g. search for Niagara)
-
search for EDINA and search for geo, both do not return Go-Geo! University of Edinburgh b/c EDINA always followed by comma, and Geo is followed by exclamation mark
@gjlawran are you up for submitting a fix?
Sorry @rgrp - unfortunately, due to other commitments - and my complete lack of understanding of Node ;) - my progress has been very slow.
I was trying to resolve this by resolving https://github.com/okfn/dataportals.org/issues/42 - using lunr.js as you suggested.