Product Documentation
Product DocumentationDeveloper GuideAPI ReferenceHelp Center
  • About Search.io
  • Fundamentals
    • Search settings
      • Understanding relevance and ranking
      • Textual relevance
      • Ranking adjustments
      • Dynamic boosting
      • Synonyms
      • Redirects
    • Promotion rules
      • Triggers
      • Manual curation
      • Boosting
      • Banners
    • Integrating search
      • Display options
      • Filters and sort options
      • Result templates
      • Search UI integration
    • Roles & permissions
    • Reporting
      • Event tracking
      • Trends
      • Content issues
      • Explore
    • Filter expressions
    • Indexing Data
      • Schema
  • Guides
    • General
      • Previewing results
    • 📄Content websites
      • Crawling a website
      • Adding custom fields
      • Configuring domains
      • Excluding documents
      • Improving content
    • 🛍️E-commerce
      • Define schema and sync data
      • Relevance tuning
      • Creating a user interface
      • Adding a sale banner
  • Integrations
    • Shopify
      • Shopify metafields
    • Webflow
    • Drupal
    • Wordpress
  • Deep dives
    • Concepts and terminology
    • How Search.io works
    • Autocomplete
    • Spelling
  • Helpful Links
    • Developer Documentation
    • API Reference
    • Help Center
Powered by GitBook
On this page
  • Filter boost
  • Range boost

Was this helpful?

  1. Fundamentals
  2. Search settings

Ranking adjustments

Ranking adjustments are a powerful way to fine-tune search results using your business data and a variety of different boosts options. These boosts provide the building blocks for promotions, merchand

PreviousTextual relevanceNextDynamic boosting

Last updated 2 years ago

Was this helpful?

Boosts can only be applied to indexed fields.

Filter boost

Filter boosts are a great way to promote and personalize results. Combined with conditions, they provide a powerful tool to adjust the ranking of your search results to optimize your business metrics.

A filter boost is defined by two fields, a and a boost score. Results that match the filter expression will be boosted according to the given score.

Example

Assuming you want to run a promotion on Nike products in your online store. The following Filter boost will boost Nike products by a score of 0.8.

Filter
Score

brand = "nike"

0.8

But filter boosts aren't limited to pre-defined values like "nike" in the example above. The filter expression can reference dynamic parameters passed into the search.

To personalize results, you can pass information about the user, such as brand affinity, into the search query and improve the search results based on that data.

{
    "variables": {
        "q": "headphones",
        "brandAffinity": "Adidas"
    }
}

In the above query example, we are passing a variable called "brandAffinity" to the search query. The variable can be referenced in the filter boost like so:

Filter
Score

brand = brandAffinity

0.7

Range boost

Boost results that fall within a specific numeric range. Boosting is applied linearly between the start and the end point. Use range boosts to boost highly rated products, popular products or inventory that needs to be sold.

Example

Assume that you have a rating field that ranges between 0-5 and the values can be decimal values (not just whole numbers). You want to boost values between 2-4 in a linear manner, where 2 receives the smallest boost and 4 (and above) the maximum boost. Ratings between 0 and 2 will receive no boost.

The configuration for this would look as follows, where the score boost of 0.4 is the maximum boost applied to values of 4 and above.

Field
Start
End
Score

rating

2

4

0.4

filter expression