Thomas Garp
08/09/2024, 11:19 AM{
"searches": [
{
"q": "cre",
"facet_by": "brand",
"query_by": "ageGroup,name,brand,nestedCategories,taste,ingredients,substances,form,productType,labeling,description",
"collection": "xyz",
//"filter_by": "brand:=['Rudolph Care']", -- Filter disabled
"page": 1,
"per_page": 250
}
]
}
Then the hit count within the brand "Rudolph Care" is 41
...
{
"count": 41,
"highlighted": "Rudolph Care",
"value": "Rudolph Care"
},
...
2: Now do a search with the filter enabled:
{
"searches": [
{
"q": "cre",
"facet_by": "brand",
"query_by": "ageGroup,name,brand,nestedCategories,taste,ingredients,substances,form,productType,labeling,description",
"collection": "xyz",
"filter_by": "brand:=['Rudolph Care']", //Filter enabled
"page": 1,
"per_page": 250
}
]
}
Now, the hit count of the brand is 49
...
"counts": [
{
"count": 49,
"highlighted": "Rudolph Care",
"value": "Rudolph Care"
}
],
...
So my question is:
Why does the hit count change? I would expect to see the same number of hits within the brand, regardless of the filter