Hi everyone , Trying out <query analytics with me...
# community-help
s
Hi everyone , Trying out query analytics with meta fields. Lets assume searching with query q=black, resulted in the following document added to the top_queries collection :
Copy code
{
  "document": {
    "analytics_tag": "make:1970",
    "count": 1,
    "id": "6721809444666933886",
    "q": "black"
  },
  "highlight": {},
  "highlights": []
}
The next time a search is executed on the source collection with q=black, but this time the analytics tag sent is "make:1975". Instead of adding a new document to the top_queries collection, it updates the existing document like so :
Copy code
{
  "document": {
    "analytics_tag": "make:1975",
    "count": 2,
    "id": "6721809444666933886",
    "q": "black"
  },
  "highlight": {},
  "highlights": []
}
Is this expected ? If not, what is a required precondition to make sure this doesn't happen and it creates a new document every time a new analytics tag is associated with a query term ?
k
@Shiva Dixith Can you please create a issue for this? The behavior you described is a bug that we can investigate and fix.
👍 1
s