New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Search inconsistency #250
Comments
Yes, the search uses Fuse.js with a fuzzy matching threshold of 0.3 on the properties listed above. I have little control over what gets matched an what doesn't. I can tweak the threshold a little bit. |
Ooops, and my second comment not relevant cause I didn't manage to see the correct torrent name (especially second word). Lets try to lower I'll try to play with configuration later if manage to merge with upstream. |
The current search is a little bit too wide. |
@WDaan I have played with different options to better understand algorithm and found out that 0.25 threshold works for my needs and I think for most users needs as well const options = {
threshold: 0.25,
shouldSort: false,
keys: ['name', 'size', 'state', 'hash', 'savePath', 'tags', 'category']
} Learned a lot about the algorithm and found out that all my above assumptions were wrong and So in this case we have 0,25 * 100*(default distance) = 25 characters from 0(default location) position in a string. Also double-checked The only worry I have is As a result of all stated above could you pls apply a new threshold in the next release? |
Thanks for the detailed analysis, I'll make a release with the tweaked value 🙂 |
Wait a sec I have noticed that torrent card double click doesn't work anymore in master. |
@IevgenSobko It's my mistake, I fixed it on #249 |
There are also some console.log statements, my bad for not checking thoroughly enough. |
The search field doesn't work as I expect.
For instance, I have the torrent that starts with
True Gift
.When I type
True
in the filter field I am getting the followingFrom what I see only last item contains the word
True
and I would expect only it to be displayed.Or maybe it uses some fuzzy search with some mistyping allowance so it finds additional items?
The text was updated successfully, but these errors were encountered: