🎉 Try the public beta of the new docs site at algolia.com/doc-beta! 🎉
Guides / Managing results / Rules / Detecting intent

Replacing an entire query

When the common way to search for something is inefficient, or when your data uses a different term than your users use, you can replace the entire search query.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
{
  "conditions": [
    {
      "anchoring": "is",
      "pattern": "smart phone apple",
      "alternatives": false
    }
  ],
  "consequence": {
    "params": {
      "query": "iphone"
    }
  }
}

Use your Search Analytics to find phrases which are repeatedly not found.

Did you find this page helpful?