Skip to content

Commit 9d9dbed

Browse files
committed
Fix last references to Attribute Position
1 parent 5e7095c commit 9d9dbed

4 files changed

Lines changed: 7 additions & 7 deletions

File tree

guides/relevancy/ordering_ranking_rules.mdx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,13 +37,13 @@ This covers things like:
3737

3838
**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.
3939

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)**
4141

4242
This covers things like:
4343

4444
- **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.
4545
- **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.
4747

4848
**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.
4949

@@ -101,7 +101,7 @@ These three rules cast a wide net and pass a large pool of relevant results thro
101101

102102
### Place Sort strategically
103103

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.
105105

106106
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.
107107

@@ -121,4 +121,4 @@ Each ranking rule has its own settings you can fine-tune beyond just ordering. F
121121

122122
**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.
123123

124-
---
124+
---

snippets/generated-code-samples/code_samples_sorting_guide_update_ranking_rules_1.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,4 +137,4 @@ client.index("books").updateRankingRules(rankingRules) { (result) in
137137
await client.index('books').updateRankingRules(
138138
['words', 'sort', 'typo', 'proximity', 'attribute', 'exactness']);
139139
```
140-
</CodeGroup>
140+
</CodeGroup>

snippets/generated-code-samples/code_samples_update_ranking_rules_1.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,4 +165,4 @@ await client.index('movies').updateRankingRules([
165165
'rank:desc',
166166
]);
167167
```
168-
</CodeGroup>
168+
</CodeGroup>

snippets/generated-code-samples/code_samples_update_settings_1.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -555,4 +555,4 @@ await client.index('movies').updateSettings(
555555
),
556556
);
557557
```
558-
</CodeGroup>
558+
</CodeGroup>

0 commit comments

Comments
 (0)