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.
![Rules](https://web.archive.org./web/20210306075726im_/https://res.cloudinary.com/hilnmyskv/image/upload/q_auto,f_auto/v1612864505/Algolia_com_Website_assets/images/rules/phone-illustration.png)
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](https://web.archive.org./web/20210306075726im_/https://res.cloudinary.com/hilnmyskv/image/upload/q_auto,f_auto/v1612864505/Algolia_com_Website_assets/images/rules/use-case-remove-word.png)
![Remove Word](https://web.archive.org./web/20210306075726im_/https://res.cloudinary.com/hilnmyskv/image/upload/q_auto,f_auto/v1612864505/Algolia_com_Website_assets/images/rules/use-case-remove-word.png)
Remove Word
Extract the information that matters to display the most relevant results.
![Replace Query](https://web.archive.org./web/20210306075726im_/https://res.cloudinary.com/hilnmyskv/image/upload/q_auto,f_auto/v1612864505/Algolia_com_Website_assets/images/rules/use-case-replace-query.png)
Replace Query
Match your user’s query with their real intent.
![Translate intent](https://web.archive.org./web/20210306075726im_/https://res.cloudinary.com/hilnmyskv/image/upload/q_auto,f_auto/v1612864505/Algolia_com_Website_assets/images/rules/use-case-redirect.png)
Redirect
Guide users to the perfect results quickly.
![Remove Word](https://web.archive.org./web/20210306075726im_/https://res.cloudinary.com/hilnmyskv/image/upload/q_auto,f_auto/v1612864505/Algolia_com_Website_assets/images/rules/use-case-remove-word.png)
Remove Word
Extract the information that matters to display the most relevant results.
![Replace Query](https://web.archive.org./web/20210306075726im_/https://res.cloudinary.com/hilnmyskv/image/upload/q_auto,f_auto/v1612864505/Algolia_com_Website_assets/images/rules/use-case-replace-query.png)
Replace Query
Match your user’s query with their real intent.
![Translate intent](https://web.archive.org./web/20210306075726im_/https://res.cloudinary.com/hilnmyskv/image/upload/q_auto,f_auto/v1612864505/Algolia_com_Website_assets/images/rules/use-case-redirect.png)
Redirect
Guide users to the perfect results quickly.
Allow developers to change or update Rules anytime
With Rules, you can promote, filter, and develop thousands of triggers & strategies based on context only you know.
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.
![Visual Editor](https://web.archive.org./web/20210306075726im_/https://res.cloudinary.com/hilnmyskv/image/upload/q_auto,f_auto/v1612864505/Algolia_com_Website_assets/images/rules/visual-editor.png)
![iPad illustration containing a play button](https://web.archive.org./web/20210306075726im_/https://res.cloudinary.com/hilnmyskv/image/upload/q_auto,f_auto/v1612864505/Algolia_com_Website_assets/images/web-cta/ipad-play.png)
Using Rules for merchandising
Boost conversion for specific query, category or user context
- Chris Lebowitz - Solutions Architect
Recommended content
Master Class: Optimize search relevance for any use case with Algolia Rules
Watch video
LiveCoding Session: Algolia + Shopify
In this live coding session, Praagya Joshi, Senior Software Engineer at Algolia and member of the Shopify team, will be doing a technical demo of the Algolia for Shopify plugin.
Watch video
Searchandising: 9 best practices for better conversion rates
Become an expert in searchandising with 9 best practices applicable at all levels of your ecommerce maturity.
Read more