Inconsistent Results
See original GitHub issueHi all, I’m having some issues with inconsistent results in Lunr.
Presuming I have 1 object in my store, { label: Assistant }
A search for assist
yields one result, however a search for assista
yields none. In fact, there’s no result for assistan
either, but assistant
returns the expected result.
I’ve created a JSFiddle that replicates the issue;
https://jsfiddle.net/mfzx2gq9/1/
There are similar issues with the words Nursing
and Accommodation
too.
What’s going on? Is this an issue with stemming? If so how can it be resolved?
Issue Analytics
- State:
- Created 6 years ago
- Reactions:1
- Comments:6 (3 by maintainers)
Top Results From Across the Web
Inconsistent results definition and meaning - Collins Dictionary
Inconsistent results definition: If you describe someone as inconsistent , you are criticizing them for not behaving in... | Meaning, pronunciation ...
Read more >Identifying Potential Reasons for Inconsistent Experiment ...
When experiments are conducted, the results may vary and it's important to identify potential reasons for inconsistent experimental results.
Read more >Three reasons why you're accepting inconsistent results and ...
Three reasons why you're accepting inconsistent results. Inconsistency and failing to follow a clear accountability process. You haven't made ...
Read more >Inconsistent Results on Drug Tests
An inconsistent drug test on a patient's toxicology report is nothing to be taken lightly. At the minimum an inconsistent report could mean ......
Read more >Inconsistent Results | Our Process
Our on-staff healthcare professional will, when requested, review the inconsistent results and initiate a conversation with the prescribing medical provider.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@TomFoyster Since this is part of an autocomplete system, it sounds like you need prefix search, and I would agree with your assessment that lunr probably isn’t a good fit this task. If you don’t need stemming itself (eg. normalizing
jumped
,jumps
, andjumping
tojump
), you could turn stemming off in the pipeline, and that might give you better results. I find wildcards and stemming kind of create a strange situation, sinceassistan*
won’t matchassistant
, then, because the latter is stemmed down toassist
. If you’re looking for fuzzy searches, you may have better luck with a library like http://fusejs.io - I haven’t used it myself, but it seems to be a more suitable fit. I don’t know how tightly integrated lunr is into your application, though!Borrowing issue I have the same issue. But I can’t quite figure out how to turn off the stemmer? 😃
EDIT: Found it 😃