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


Algolia offers unlimited space to define your own set of rules
Based on an “If This Then That” logic, Rules let you make precise modifications to your Search & Discovery experience, 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.
3 examples of strategies using our Rules
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 Merchandising Studio.

Recommended content
Blindster takes window of opportunity to go headless; adopts Algolia for fast, scalable search
Learn how Algolia’s flexibility and out-of-the-box functionality is helping Blindster to reach its goal of becoming #1 in the industry.
Read more
Merchandising, Art or Science?
Explore the art & science of digital merchandising; we discuss balancing competing priorities on key product pages, measuring the impact of merchandising initiatives, and predicting the impact of AI.
Watch video
Linio: Making online shopping accessible in Latin America
Linio sees a 20% drop in searches with no results by using Algolia to customize search rankings and provide relevant results without the help of engineering.
Read more