I have a should query like
query: {
bool: {
should: [
{
match: {
name: value,
}
},
{
match: {
number: value2
}
}
]
}
}
I want to get 200 results. Out of those 200, I want as many "number" matches as I can get, with the remainder being "name" matches. I also know that the number of "number" matches will typically be small (1-10).
Is there a way for me to prioritise the number matches, to make sure I'm getting as many as I can before looking at name matches? I know how to achieve it using msearch, but was wondering if I can do it in one query. Thanks.