Closed mikeerickson closed 3 years ago
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days
@mikeerickson refIndex
is the index of the item on the index object. Try pre-indexing with Fuse.createIndex
instead of letting Fuje.js do it behind the scenes.
I am giving this module a try, but I am having some difficulty understanding the results. I am sure this is pilot error, so if you could enlighten me on what is actually happening, it will help me better understand.
In the following example, the results are listed at the bottom. Specifically, when providing a search term of "Kira ABC", I am "expecting" results to include all three items, when in fact it is only return the last two items (associated to Kira) but omitting the first one (associated to ABC)
If I do a second query of "ABC Kira" it does return the expected rows which leads to my confusion and needing more information.
contact.firstName === 'Kira'
title
starts with "ABC" ANDcontact.firstName === 'Kira'
threshold
to something like0.75
then the results do indeed change, but it also includes an item that is definitely not part of the search value (seeResult 2
and inclusion ofAnother Company
)Again, I am sure this is pilot error, but I cant seem to find anything in the documentation which documents the order and precedence of queries.
And, I am not able to find anything which documents what
refIndex
value indicatesResults 1
Result 2