meilisearch/MeiliSearch

Changing ranking rules order removes hits

已關閉

#6,185 建立於 2026年2月25日

 (3 則留言) (0 個反應) (0 位負責人)Rust (2,542 個分叉)batch import
buggood first issue

倉庫指標

星標
 (57,572 顆星)
PR 合併指標
 (平均合併 11天 20小時) (30 天內合併 41 個 PR)

描述

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

貢獻者指南