Hi. We have a customer who is having a problem reg...
# community-help
t
Hi. We have a customer who is having a problem regarding facet counts. The number of hits is inconsistent when doing a query, combined with a facet filter. Steps to reproduce: 1: Do a search with a search query
Copy code
{
    "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
Copy code
...   
 {
                            "count": 41,
                            "highlighted": "Rudolph Care",
                            "value": "Rudolph Care"
                        },
...
2: Now do a search with the filter enabled:
Copy code
{
    "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
Copy code
...  
"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