In the given hotel example given azure cognitive search, I need to get only one hotel from each category. What are the filter parameters I need to use and how?
I want a result like below where all categories are Budget, Resort and Spa, Luxury, Boutique, Suite, Extended-Stay
[
{
"@search.score": 1,
"HotelId": "24",
"HotelName": "Gacc Capital",
**"Category": "Budget",**
"Rating": 3.5
},
{
"@search.score": 1,
"HotelId": "22",
"HotelName": "Stone Lion Inn",
**"Category": "Luxury",**
"Rating": 3.9
},
{
"@search.score": 1,
"HotelId": "11",
"HotelName": "Regal Orb Resort & Spa",
**"Category": "Extended-Stay",**
"Rating": 2.5
},
{
"@search.score": 1,
"HotelId": "13",
"HotelName": "Historic Lion Resort",
**"Category": "Boutique",**
"Rating": 4.1
},
{
"@search.score": 1,
"HotelId": "29",
"HotelName": "Thompson House",
**"Category": "Resort and Spa",**
"Rating": 2.6
},
{
"@search.score": 1,
"HotelId": "36",
"HotelName": "Pelham Hotel",
**"Category": "Suite",**
"Rating": 3.5
}
]