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: specs/recommend/common/schemas/IndexSettings.yml
+73-44Lines changed: 73 additions & 44 deletions
Original file line number
Diff line number
Diff line change
@@ -338,7 +338,36 @@ indexSettingsAsSearchParams:
338
338
- custom
339
339
x-categories:
340
340
- Ranking
341
-
341
+
# customRanking:
342
+
# type: array
343
+
# items:
344
+
# type: string
345
+
# example:
346
+
# - desc(popularity)
347
+
# - asc(price)
348
+
# description: |
349
+
# Attributes to use as [custom ranking](https://www.algolia.com/doc/guides/managing-results/must-do/custom-ranking/).
350
+
# Attribute names are case-sensitive.
351
+
352
+
# The custom ranking attributes decide which items are shown first if the other ranking criteria are equal.
353
+
354
+
# Records with missing values for your selected custom ranking attributes are always sorted last.
355
+
# Boolean attributes are sorted based on their alphabetical order.
356
+
357
+
# **Modifiers**
358
+
359
+
# - `asc("ATTRIBUTE")`.
360
+
# Sort the index by the values of an attribute, in ascending order.
361
+
362
+
# - `desc("ATTRIBUTE")`.
363
+
# Sort the index by the values of an attribute, in descending order.
364
+
365
+
# If you use two or more custom ranking attributes,
366
+
# [reduce the precision](https://www.algolia.com/doc/guides/managing-results/must-do/custom-ranking/how-to/controlling-custom-ranking-metrics-precision/) of your first attributes,
0 commit comments