Query Rules: Introducing Preview Rule Effect

Siddharth Kothari
All things #search
Published in
2 min readNov 23, 2021

--

We’re excited to introduce new enhancements to how Query Rules work. You will now be able to see the preview 👀 of query rule actions live from the dashboard.

Use Preview Rule Effect to understand how query rules are getting applied

You can also see the preview of documents matching the query condition before the rule is applied, allowing to have a better control on the actions to apply.

What can you do with Query Rules

Query Rules provide an intuitive way to tailor your search engine’s relevance algorithm to your business needs. You can:

  • Promote results or suggestions
  • Hide results
  • Replace search term or specific parts of the search term (we support regexps making this super powerful)
  • Set search intent (e.g. apply a facet) based on the search term
  • Set a promotion banner or return any custom data.

Query Rules are really powerful: they can be triggered based on searches on specific indexes, for specific terms or term patterns (thanks to regexps), for specific facet values, by the type of query (e.g. only run query rules for Autosuggestions) as well as run for a specific timeframe (e.g. run these rules for our Holiday specials!)

Moar awesome stuff is coming to Query Rules

We’re also working on an enhancement to allow creating your own JavaScript actions (that run in V8 engine) to modify the search query with full control, or the search results, or to create side effects (e.g. implement saved query functionality). This will be available in preview shortly, feel free to write to us to try this before the general release!

Read more about query rules over here.

Appbase.io is on a mission to enable creating the most demanding app search experiences (we support Elasticsearch and Opensearch engines today), sign up for a 14-day free trial now!

--

--