hello team, I am getting facet results like { ...
# community-help
y
hello team, I am getting facet results like { "results": [ { "facet_counts": [ { "counts": [ { "count": 5, "highlighted": "Red", "value": "Red" }, { "count": 4, "highlighted": "Black", "value": "Black" }, { "count": 3, "highlighted": "12", "value": "12" }, { "count": 2, "highlighted": "13", "value": "13" }, { "count": 2, "highlighted": "15", "value": "15" }, { "count": 1, "highlighted": "7", "value": "7" }, { "count": 1, "highlighted": "14", "value": "14" }, { "count": 1, "highlighted": "37", "value": "37" }, { "count": 1, "highlighted": "White", "value": "White" }, { "count": 1, "highlighted": "Yellow", "value": "Yellow" } ], but I want to show only red,white,black,yellow so how do I set facet_query so that it will give only that values or is there another way , it would be much help thanks
k
Facet query can only do a keyword prefix search on facet values. It's not possible to do a filter expression on them, like
x OR y
.
This has to be done client side.
y
thanks !!