meilisearch/MeiliSearch

Changing ranking rules order removes hits

Open

#6185 opened on Feb 25, 2026

View on GitHub
 (3 comments) (0 reactions) (0 assignees)Rust (20,887 stars) (733 forks)batch import
buggood first issue

Description

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:

  1. create a brand new index with default settings,
  2. push the prizes.json file,
  3. run a simple query (e.g. "albert physics") and count hits,
  4. change the ranking rules order (for instance, by moving the attributeRank rule to the top),
  5. 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

Contributor guide