Query Rule Context

A widget to set Rule contexts without rendering anything.

Check out the demo


The queryRuleContext widget lets you apply ruleContexts based on filters to trigger context dependent Rules.

Rules offer a custom experience based on contexts. You might want to customize the users’ experience based on the filters of the search (for example, they’re visiting the “Mobile” category, they selected the “Thriller” genre, etc.) This widget lets you map these filters to their associated Rule contexts, so you can trigger context based Rules on refinement.



Was this useful?


Built and supported by Algolia




The best Search and Discovery Platform for your business.

Recommended content

Frontend Tools
Widgets & Plugins

Query Rule Custom Data Widget

A widget to display custom data from Rules.

  • JavaScript
  • React
  • Vue.js
  • Angular