Skip to content

Commit 6dce8de

Browse files
committed
Rename the attributePostion ranking rule into wordPosition
1 parent 89fa428 commit 6dce8de

4 files changed

Lines changed: 8 additions & 8 deletions

File tree

assets/open-api/meilisearch-openapi-mintlify.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17540,11 +17540,11 @@
1754017540
{
1754117541
"type": "string",
1754217542
"description": "Documents with query words at the beginning of an attribute\nare considered better.",
17543-
"enum": ["AttributePosition"]
17543+
"enum": ["WordPosition"]
1754417544
},
1754517545
{
1754617546
"type": "string",
17547-
"description": "Legacy rule combining AttributeRank and AttributePosition.\nDocuments with query words contained in more important\nattributes are considered better.",
17547+
"description": "Legacy rule combining AttributeRank and WordPosition.\nDocuments with query words contained in more important\nattributes are considered better.",
1754817548
"enum": ["Attribute"]
1754917549
},
1755017550
{

snippets/generated-code-samples/code_samples_sorting_guide_update_ranking_rules_1.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ curl \
1010
"typo",
1111
"proximity",
1212
"attributeRank",
13-
"attributePosition",
13+
"wordPosition",
1414
"exactness"
1515
]'
1616
```
@@ -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: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ curl \
1010
"proximity",
1111
"attributeRank",
1212
"sort",
13-
"attributePosition",
13+
"wordPosition",
1414
"exactness",
1515
"release_date:asc",
1616
"rank:desc"
@@ -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: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ curl \
1111
"proximity",
1212
"attributeRank",
1313
"sort",
14-
"attributePosition",
14+
"wordPosition",
1515
"exactness",
1616
"release_date:desc",
1717
"rank:desc"
@@ -555,4 +555,4 @@ await client.index('movies').updateSettings(
555555
),
556556
);
557557
```
558-
</CodeGroup>
558+
</CodeGroup>

0 commit comments

Comments
 (0)