Open npearson72 opened 3 years ago
I ran into this too and realized what was going on
see #480
basically, there's a default pipeline "stopWordFilter" that filters out a set of small words (including "her" or in my case "get"). If you want to include those, just remove the pipeline
config.searchPipeline.remove(lunr.stopWordFilter)
cheers!
I thin my point is that the stopWordFilter is where the bug is
I have the following setup:
The resulting
invertedIndex
is:Notice that
her's
(from record 2) was indexed, buther
(from record 1) was not.The same happens if I remove record 2. A single record with the word
her
does not get indexed.Is there a trick to this or is this a bug?
FYI: I have found other similar occurrences.