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.
Made for developers and merchandisers
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.
The most advanced companies experiment everyday with relevance rules
“We realized that search should be a core competence of the LegalZoom enterprise, and we see Algolia as a revenue generating product.”
Mrinal Murari
Tools team lead & senior software engineer @ LegalZoomRecommended content

How is AI-Led Merchandising solving merchandisers biggest challenges
From dynamic re-ranking to advanced personalization, see how data-driven strategies are reshaping ecommerce with this video. Learn how to turn your merchandising challenges into growth opportunities.

How Lyle & Scott use AI Search to double conversions
Learn from Ivonne Waldo, eCommerce Lead at Lyle & Scott, as she shares insights on the importance of a seamless search experience to tackle merchandisers challenges.
Merchandising in the era of artificial intelligence (AI)
The advent of AI heralds a revolutionary opportunity that will change how merchandisers operate & strategize, but ecommerce businesses will face new challenges as they integrate AI-powered technology.