ryanhugh / searchneu

Search over Classes, Professors and Employees at NEU!
https://searchneu.com
GNU Affero General Public License v3.0
74 stars 18 forks source link

Searching for "CS 4710" results in "ENGL 4710" as first result #59

Closed edward-shen closed 6 years ago

edward-shen commented 6 years ago

Expected behavior: The card for CS 4710 appears as the first result Actual behavior: The card for ENGL 4710 appears as the first result, then CS4710 Attempted search fields: "CS4710", "CS 4710". 2018-04-11-222849_928x976_scrot

ryanhugh commented 6 years ago

Yeah... We have found a couple other instances of this same problem. It is because the current search library we are using (elasticlunr.js) trims off the S's from words that end with an S. This means that plural words will match singular words which is good for searching through paragraphs, etc, but not for searching through stuff like this. This will be fixed when we move to Amazon's Cloudsearch.

ryanhugh commented 6 years ago

Closing as a duplicate of #21