🎉 Try the public beta of the new docs site at algolia.com/doc-beta! 🎉
API Reference / API Parameters / enableReRanking
Type: boolean
Engine default: true
Parameter syntax
'enableReRanking' => true|false

Can be used in these methods:

About this parameter

Whether this search should use Dynamic Re-ranking.

Usage notes

You need to turn on Dynamic Re-ranking on your index for it to have an effect on your search results. You can do this through the Re-Ranking page on the dashboard. This parameter is only used to turn off Dynamic Re-ranking (with false) at search time.

Examples

Turn off re-ranking

1
2
3
$results = $index->search('query', [
  'enableReRanking' => false
]);
Did you find this page helpful?