Skip to main content
  • Type: boolean
  • Default: true
  • Scope: search
The enableReRanking parameter controls whether Dynamic Re-Ranking is applied to the current search query. This setting lets you selectively activate or deactivate re-ranking on a per-query basis.

Usage

  • This parameter has no effect unless Dynamic Re-Ranking is enabled in your Algolia dashboard.

A/B testing

If you use this parameter in an A/B test with Dynamic Re-Ranking:
  • true: the user is included in the re-ranked test group.
  • false: the user is excluded from the re-ranked group.
To ensure valid A/B test results, use a consistent value for enableReRanking across all variants.

Example

Current API clients

index.Search(new Query("")
{
    EnableReRanking = false
});
index.Search(new Query("")
{
    EnableReRanking = false
});
I