-
Notifications
You must be signed in to change notification settings - Fork 4
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
Order of the search results seems to be wrong / suboptimal #22
Comments
I believe I have a way to fix this. I'll try and get to this when I can. Thank you for using my plugin. |
Hi Garulf, What I expected was the identical order of results with just some numbers added to the title text. You can check this by just modifying the Line. Would be great if you could try this on your side and tell me what I may be missing wrt the score/sorting of the results. |
Python plugins do not have access to Flows scoring functions. I experimented with fuzzy matching in other plugins but found results to be subpar. The Obsidian plugin doesn't use any scoring but simple shows any item that contains your search query. Eventually I was able to port Flows search algorithm to Python however I have not had a chance to add it to this plugin yet. With Flows plugin version 2 almost ready it might be better to wait so that it can use the search algorithm directly from Flow. |
I see - explains why little hacks I tried to tweak scoring just to understand the resulting sorting didn't make any sense :) Thanks for your answer |
Hi @AlanEdd, Currently the plugin simple matches by filename. Would matching by path be useful? |
Well I am not sure how it matches but the exact file name above: When I add another word |
Hi,
could you explain the sorting of the search results as I have cases where even the exact written filename of a note doesn't end in the first, and so autocomplete, spot of the results (see the screenshot).
In this case it's only on position 3 and the first listed is completely irrelevant to my search, neither the file/notes name nor the actual content includes what I searched for.
Thanks
The text was updated successfully, but these errors were encountered: