Configuration
Ranking Rules
Control how search results are ordered and prioritized.
Overview
Ranking rules determine the order in which search results appear. SearchX uses a combination of AI-powered relevance scoring and configurable rules to deliver the best results for each query.
Default Ranking Order
SearchX applies ranking rules in the following default order:
- Words — Number of query terms found in the document
- Typo — Number of typos between query and matches
- Proximity — Distance between matched query terms in the document
- Attribute — Attribute ranking order (searchable attributes priority)
- Sort — User-defined sort rules
- Exactness — Similarity of matched words to query terms
Custom Ranking Rules
You can add custom ranking rules from the SearchX dashboard to influence result ordering:
Sort by Price
price:asc — Show cheapest products first
price:desc — Show most expensive products first
Sort by Popularity
sales_count:desc — Show best-selling products first
view_count:desc — Show most-viewed products first
Configuring Rules
- Go to Applications > your app > Settings.
- Scroll to the Ranking Rules section.
- Drag and drop rules to change their priority order.
- Add custom sort rules using the attribute name and direction.
- Click Save to apply changes.
AI-Powered Ranking
SearchX's AI engine automatically learns from user behavior to improve result relevance over time. Custom ranking rules work alongside the AI to give you full control over the search experience.