Is there a way in azure search, to bring data orderby
value to top and remaining below. Bringing the hotel's in user's location country to top and then other results
For example: See the sample data below
HotelName | City | Country | RoomType | rating |
---|---|---|---|---|
XYZ | City1 | India | abc | 4 |
UVW | City2 | Australia | def | 5 |
KWHK | City3 | India | 6 | |
KHUK | City4 | China | 2 |
I want to get all the data, but country India
should be at top result and remaining should be below. (which includes pagination).
I am doing lucene query POST search for same , and below is my query json body for same .
Query: { search: *, queryType: 'full', count: true, skip: 0, top: 10, scoringStatistics: 'global', searchMode: 'any', }