-
Notifications
You must be signed in to change notification settings - Fork 3
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
[PB-2628, BR-492]: fix/Improve file search ranking #394
Conversation
Hey, @jzunigax2 would you mind running |
@sg-gs, this is with 250k records Before:
After
|
Also @apsantiso passed me another error report related to this search functionality and after taking a look it turns out that the more specific a search term got the search results became worse. This was due ordering by rank ASC, it seems that the lower the ts_rank output the worse match it is. Simply ordering by rank DESC greatly improves search results. @sg-gs with this the new exactMatch check could be unnecessary but as seen in the execution plans it has little impact on performance, let me know if I should revert or keep it. |
Quality Gate passedIssues Measures |
There is virtually no impact on the performance, as long as it passes the QA, this can be merged. Great job @jzunigax2 |
The search used for fuzzy search was not finding the correct file in cases were many files existed with very similar name patterns, for example VID_YYYYMMDD_XXXXX. Even when searching for the exact file name it was not included in the 5 search results returned.
Before / After