Hey guys, I am trying setup no hits query analytic...
# community-help
v
Hey guys, I am trying setup no hits query analytics, and it doesn’t work. Here is my rule:
Copy code
{
  "rules": [
    {
      "name": "listings_no_hits_rule",
      "params": {
        "destination": {
          "collection": "listings_no_hits_queries"
        },
        "limit": 1000,
        "source": {
          "collections": [
            "listings"
          ]
        }
      },
      "type": "nohits_queries"
    }
  ]
}
I am not sure if it because we don’t have collections named listings(it’s an alias to another collection). Where is a way to debug it?
a
hi @Vladimir Nadygin, are you using typesense cloud? It does work with alias, but the name in the rule and in the request must be exactly the same. So if in the rule you use the alias, but in the request you use the collection original name, it won't pickup the rule.