Ivan Wolf
09/11/2025, 11:16 AM{
"name": "search_queries",
"fields": [
{
"name": "q",
"type": "string"
},
{
"name": "filter_by",
"type": "string"
},
{
"name": "count",
"type": "int32"
}
]
}
And the created a rule:
{
"rules": [
{
"name": "popular_queries",
"params": {
"source": {
"collections": [
"inquiries",
"orders"
]
},
"destination": {
"collection": "search_queries"
},
"expand_query": false,
"limit": 1000
},
"type": "popular_queries"
}
]
}
No documents are added to the collection search_queries.
analytics-flush-interval: 300 is set.
Any help would be greatly appreciated.Fanis Tharropoulos
09/11/2025, 1:47 PMIvan Wolf
09/11/2025, 2:29 PMIvan Wolf
09/11/2025, 2:31 PMfilter_by field is made optional, documents get added.
It seems there's a problem with the "meta_fields": ["filter_by"] parameter for the rule 🤔Ivan Wolf
09/11/2025, 2:32 PMmeta_fields parameter is also not part of the response of GET /analytics/rules, though it seems it can be set.Fanis Tharropoulos
09/15/2025, 8:48 AMIvan Wolf
09/15/2025, 9:11 AMinquiries and orders) and offer users to search (q) and filter (filter_by, facet_by) these collections separetely.
• We want to find out if (i.e. how often) users combine a search term (q) with filterting (filter_by).
• The idea was to set up an Analytics Rule that includes q and filter_by (so we can find out if any popular requests contain both).Fanis Tharropoulos
09/16/2025, 2:54 PMIvan Wolf
09/17/2025, 5:26 PM