You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: guides/relevancy/ordering_ranking_rules.mdx
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -37,13 +37,13 @@ This covers things like:
37
37
38
38
**These three rules cast a wide net and return lots of results.** That's good—you want to start broad and then narrow down, not the other way around. If you start too narrow you can lose relevancy easily.
39
39
40
-
**Group 2 - Fine-tuning : Exactness, Attribute Rank, Attribute Position (included in ranking score)**
40
+
**Group 2 - Fine-tuning : Exactness, Attribute Rank, Word Position (included in ranking score)**
41
41
42
42
This covers things like:
43
43
44
44
-**Exactness**: Did the document match your whole search term or just pieces of it? Whole matches rank higher, especially when an entire field matches exactly or starts with your query. Documents containing extra content beyond the search term are ranked lower.
45
45
-**Attribute Rank**: Matches in your most important fields rank higher. You set field priority in `searchableAttributes`, with fields at the top of the list treated as the most important.
46
-
-**Attribute Position**: Matches near the beginning of a field rank higher.
46
+
-**Word Position**: Matches near the beginning of a field rank higher.
47
47
48
48
**These are your fine-tuning filters.** They return fewer, more precise results. Use these after Group 1 rules to refine your large result set into something more precise.
49
49
@@ -101,7 +101,7 @@ These three rules cast a wide net and pass a large pool of relevant results thro
101
101
102
102
### Place Sort strategically
103
103
104
-
We recommend putting Sort after your Group 1 rules and before your Group 2 rules (Attribute Rank, Attribute Position, Exactness). This way, Meilisearch finds relevant results first and then uses your sort field to order documents that have similar text relevance, giving you a balance of match quality and sorting.
104
+
We recommend putting Sort after your Group 1 rules and before your Group 2 rules (Attribute Rank, Word Position, Exactness). This way, Meilisearch finds relevant results first and then uses your sort field to order documents that have similar text relevance, giving you a balance of match quality and sorting.
105
105
106
106
If sorting matters more than text relevance for your use case - like an e-commerce price filter where users expect strict price ordering - move Sort higher. Just remember that Sort only activates when you include the `sort` parameter in your search query. Without it, the Sort rule has no effect.
107
107
@@ -121,4 +121,4 @@ Each ranking rule has its own settings you can fine-tune beyond just ordering. F
121
121
122
122
**Want to see these rules in action?** In our next guide, [How Do I Interpret Ranking Score Details?](/guides/relevancy/interpreting_ranking_scores), we walk through a real example showing exactly how Meilisearch evaluates each rule — and how moving Sort one position can flip your results.
0 commit comments