Changing ranking rules order removes hits
#6.185 geöffnet am 25.02.2026
Repository-Metriken
- Stars
- (57.572 Sterne)
- PR-Merge-Metriken
- (Durchschn. Merge 11T 20h) (41 gemergte PRs in 30 T)
Beschreibung
Hi,
I see that changing the order of ranking rules not only changes the order of hits, but also removes some of them. Is it expected?
In order to reproduce with Meilisearch v1.36, it is enough to:
- create a brand new index with default settings,
- push the prizes.json file,
- run a simple query (e.g. "albert physics") and count hits,
- change the ranking rules order (for instance, by moving the
attributeRankrule to the top), - re-run the sample simple query as in step 3 and count hits again.
I get 8 hits for "albert physics" if using the default ranking rule order (namely ["words", "typo", "proximity", "attributeRank", "sort", "wordPosition", "exactness"], only 3 hits if ranking rules are ordered as follows: ["attributeRank", "words", "typo", "proximity", "sort", "wordPosition", "exactness"]. These 3 hits correspond to documents for which category is equal to physics.
Thanks to the Meilisearch community for all the efforts that are being put into such an awesome tool!
Alessandro