neural-search
neural-search copied to clipboard
Enable Multi Field Sorting in Hybrid Search
While executing Hybrid search enable multi field sort to apply on the results.
{
"query": {
"hybrid": {
"queries": [
{
"match": {
"passage_text": "goodies"
}
},
{
"term": {
"passage_text": {
"value": "containers"
}
}
},
{
"range": {
"stock": {
"gte": 40,
"lte": 60
}
}
}
]
}
}
},
"sort": [
{
"stock": {
"order": "asc"
}
},
{
"imdb":{
"order":"asc"
}
}
],
"track_scores": true
}