To brief:(Elastic Search)
I have set of IDs [12,32,44,32], I need to prioritize the records based on the list of IDs, means I need to bring the record which has the IDs one among the above mentioned list and the rest of the records should be arranged after prioritized 4 record
{
id:12
.
.
},
{
id:32
.
.
},
{
id:44
.
.
},
{
id:32
.
.
},
{
id:1
.
.
},
{
id:2
.
.
},
...
Kindly expecting the answers for query format or the approach to boost the result in query!
We can add the script to the existing filter using SORT without adding boost to the existing query
This is tested and verified in local.