Vamshi Aruru
09/05/2023, 3:52 PM"facet_counts": [
{
"counts": [
{
"count": 0,
"highlighted": "",
"value": "good"
},
{
"count": 0,
"highlighted": "",
"value": "great"
},
{
"count": 0,
"highlighted": "",
"value": "average"
}
],
"field_name": "discountPercentage",
"sampled": false,
"stats": {
"avg": 67.72263095600817,
"max": 88.87149810791016,
"min": 10.326700210571289,
"sum": 3163188.6466932297,
"total_values": 3
}
}
]
response without group by:
"facet_counts": [
{
"counts": [
{
"count": 26168,
"highlighted": "",
"value": "good"
},
{
"count": 20511,
"highlighted": "",
"value": "great"
},
{
"count": 29,
"highlighted": "",
"value": "average"
}
],
"field_name": "discountPercentage",
"sampled": false,
"stats": {
"avg": 67.72263095600817,
"max": 88.87149810791016,
"min": 10.326700210571289,
"sum": 3163188.6466932297,
"total_values": 3
}
}
]
the facet_by query is discountPercentage(average:[0,30],good:[30,70],great:[70,100])
and group_by is a simple productSlug
.
Am I missing something? Any help is very appreciated. Typesense cloud is at the latest version so all features should be there.
TIA!