Rules can be triggered by specific search terms (and automatically extended to its synonyms) or applied without any user query needed.
Improve search relevance with Rules
Enhance your default ranking by setting up Rules to fine-tune internal search relevance and detect or respond to user intent.


Based on an “If This Then That” logic, Rules let you make precise modifications to your Search & Discovery experience.
Algolia offers unlimited space to define your own set of rules, leveraging various strategies applied in any situation:
Rules can take into account various contextual elements (device used, category page, geolocation).
Rules can be limited to a specific time-range or be “always on”.
3 examples of strategies using our Rules


Remove Word
Extract the information that matters to display the most relevant results.

Replace Query
Match your user’s query with their real intent.

Redirect
Guide users to the perfect results quickly.

Remove Word
Extract the information that matters to display the most relevant results.

Replace Query
Match your user’s query with their real intent.

Redirect
Guide users to the perfect results quickly.
Code with confidence
The what-is and how-to of the Rules API. Overviews, use cases, tutorials, code snippets, and a full tech reference - Everything you’ll need to get started coding.
Do it visually
Let your business users get control over Search & Discovery with our Visual Editor.

Using Rules for merchandising
Boost conversion for specific query, category or user context
- Chris Lebowitz - Solution Architect
Recommended content
Un viaggio verso il commercio headless: a partire dalla ricerca
Partecipa alla nostra discussione e scopri come Artemest presenta i prodotti e i contenuti giusti ai propri clienti attraverso la ricerca pertinente.
Watch video
Otrium - For All Clothing To Be Worn, It Must Be Found
Hear how fashion industry disruptor, Otrium, powers their company’s mission with Algolia Search.
Watch video
The Total Economic Impact of Algolia (A Forrester study commissioned by Algolia)
Algolia’s search-as-a-service via APIs simplifies search and recommendation tasks, making the experience faster and more relevant to users, while transforming the way retailers run their businesses.
Read more