Skip to content
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

Ranking rules should not do any work when only one bucket candidate exists #3124

Closed
Tracked by #3111
loiclec opened this issue Nov 23, 2022 · 1 comment
Closed
Tracked by #3111
Assignees
Labels
milli Related to the milli workspace performance Related to the performance in term of search/indexation speed or RAM/CPU/Disk consumption v1.2.0 PRs/issues solved in v1.2.0 released on 2023-06-05
Milestone

Comments

@loiclec
Copy link
Contributor

loiclec commented Nov 23, 2022

As explained in the Meilisearch documentation and in this issue, the role of a ranking rule is to sort search results by their relevancy. Each ranking rule narrows down a list of documents until just a few equally relevant documents remain.

It is quite common for a ranking rule to narrow down a list of documents into just one document. If that happens, there is no need to give this document to any other ranking rule, since there is nothing left to sort. However, this easy optimisation is not yet implemented.

@loiclec loiclec added milli Related to the milli workspace performance Related to the performance in term of search/indexation speed or RAM/CPU/Disk consumption labels Nov 23, 2022
@loiclec loiclec self-assigned this Nov 23, 2022
@loiclec loiclec mentioned this issue Nov 23, 2022
8 tasks
@loiclec
Copy link
Contributor Author

loiclec commented May 15, 2023

Fixed by #3542

@loiclec loiclec closed this as completed May 15, 2023
@curquiza curquiza added this to the v1.2.0 milestone May 15, 2023
@meili-bot meili-bot added the v1.2.0 PRs/issues solved in v1.2.0 released on 2023-06-05 label Jun 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
milli Related to the milli workspace performance Related to the performance in term of search/indexation speed or RAM/CPU/Disk consumption v1.2.0 PRs/issues solved in v1.2.0 released on 2023-06-05
Projects
None yet
Development

No branches or pull requests

3 participants