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:

  1. Words — Number of query terms found in the document
  2. Typo — Number of typos between query and matches
  3. Proximity — Distance between matched query terms in the document
  4. Attribute — Attribute ranking order (searchable attributes priority)
  5. Sort — User-defined sort rules
  6. 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

  1. Go to Applications > your app > Settings.
  2. Scroll to the Ranking Rules section.
  3. Drag and drop rules to change their priority order.
  4. Add custom sort rules using the attribute name and direction.
  5. Click Save to apply changes.
Configuring ranking rules in the SearchX dashboard.

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.

Previous
Search Settings