dataportals.org icon indicating copy to clipboard operation
dataportals.org copied to clipboard

Search cannot find records when terms included a special character

Open gjlawran opened this issue 10 years ago • 2 comments

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:

  1. 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 )

  1. 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)

  2. 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 avatar Jan 05 '15 15:01 gjlawran

@gjlawran are you up for submitting a fix?

rufuspollock avatar Feb 07 '15 17:02 rufuspollock

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.

gjlawran avatar Feb 10 '15 03:02 gjlawran