I have a simple terms query with a list of IDs defined. My goal is to get results back in the same order as it was defined in the input array. How to achieve that?
{
query: {
terms: {
_id: ["12", "34", "6", "22"]
}
}
}