Go to the Index page in the Algolia dashboard
Select the index which you want to configure
Go to Configuration
Select Ranking and Sorting
2. To add a custom ranking attribute, click Add custom ranking attribute
3. If you add custom ranking attributes, they appear at the bottom of the Ranking and sorting list. Select the desired sort order for each attribute: ascending or descending.
There are several strategies for setting up custom ranking. Which strategy you should choose depends on how often your data changes and how many pieces of data there are.
If you want to use multiple custom ranking attributes to get a good mix of results, you should reduce the granularity of each attribute, or the other attributes may never be used.
To reduce the granularity of your custom ranking attribute, you can:
You can tweak the custom ranking according to your business needs by embedding business-relevant attributes as custom ranking attributes. For example a ranking based on:
myBrand: true
organic: true
inStock: true
desc(salesMargin)
sold_last_month
, or sold_past_week