Guides / Algolia AI / Dynamic Re-Ranking

Add Dynamic Re-Ranking to category pages

You can use Algolia’s Dynamic Re-Ranking feature to find trends in your users’ behavior. Based on users’ interaction throughout search and browse, Dynamic Re-Ranking improves the relevance of your category pages by boosting results that are trending or rising in popularity.

Screenshot of Dynamic Re-Ranking

Once you set up the category pages and successfully send click and conversion events (requires coding) to Algolia, Algolia starts using this data to detect trends in your user behavior. No coding is required to enable Dynamic Re-Ranking on category pages.

Learn more about Dynamic Re-Ranking’s effect on relevance.

Implementation steps

  1. Build the category pages
  2. Send click and conversion events to Algolia
  3. Enable Dynamic Re-Ranking on category pages
  4. A/B test Dynamic Re-Ranking on category pages

Send click and conversion events to Algolia

You must complete this step before enabling Dynamic Re-Ranking.

Dynamic Re-Ranking refreshes each query’s ranking every 24 hours. It always takes the last 30 days into account, meaning it’s based on a sliding window of the most recent analytics data.

Enable Dynamic Re-Ranking on category pages

Configure the following options from the Dynamic Re-Ranking page in the dashboard.

  • Opt in an index for Dynamic Re-Ranking.
  • Select the correct events source index (optional).
  • Pick your category page identifier by choosing a Browsing Facet.
  • Adjust weight to recent events (optional)
  • Simulate Dynamic Re-Ranking.
  • Activate Dynamic Re-Ranking.

You can see re-ranked results only after Algolia has received enough search traffic and click and conversion events. For a record to be promoted for a given query, it must gather at least 20 clicks or two conversions during the 30 days time window.

Opt in an index for Dynamic Re-Ranking

Go to the Dynamic Re-Ranking page in the Algolia dashboard and select the index you want to use for Dynamic Re-Ranking.

Optional: select the correct events source index

Under Dynamic Re-ranking, click Events source index and update the source index where you send your click and conversion events in production. If you need to use a different source for your events, you can select the correct events source index.

A main use case for selecting an alternative source index is when you have a staging index that replaces the production index every day for atomic reindexing. In this case, you should enable re-ranking on both the staging and target production indices as source events, given that the production index already receives events.

Screenshot of Dynamic Re-Ranking update index source

Pick your category page identifier by choosing a “browsing facet”

Under Dynamic Re-Ranking, click Browsing facet and update the browsing filter to the category page identifier you indexed in the dataset. A category page identifier is a unique identifier that references a particular category page. Possible identifiers include collections, categories, categoryId, and categoryPageId. Check with your team to make sure the browsing filter is referencing the correct filter used in the query to generate the category page in the frontend UI.

Screenshot of Dynamic-Re-Ranking browse facet

Optional: adjust weight to recent events

By default, the event freshness setting is enabled to handle seasonality and shorter trends. Although can turn off this setting, you should usually leave it on.

Simulate Dynamic Re-Ranking

Once Algolia receives enough search traffic and click and conversion events, you can assess the effect of re-ranking on your search results and browse page in the simulator. You should use the simulator before activating the feature in production.

Screenshot of the Dynamic Re-Ranking simulator

Activate Dynamic Re-Ranking

Before activating Dynamic Re-Ranking, you can turn off re-ranking for specific records. To prevent promoting popular items that are out of stock or no longer listed, select a filter value, for example instock=true.

Click Activate:

Screenshot of Dynamic Re-Ranking activate button

Turn off re-ranking for specific records:

Screenshot of Dynamic Re-Ranking activate screen

A/B test Dynamic Re-Ranking on category pages

To measure performance of the re-ranking approach, it’s important to launch the A/B test directly from the re-ranking section of the UI and not from the A/B test tab in the dashboard. This ensures all the settings are configured correctly and that you are measuring the performance only on the pages with enough traffic and where Re-Ranking rules apply.

Screenshot of Dynamic Re-Ranking screen for A/B test

Next steps

Did you find this page helpful?