Order by field in multiple indexes

I have a mapping for direct conversations and group conversations in elastic search DB. Every entry in each mapping has a field called updatedTime. I would like to get the conversations ordered based on the updatedTime. Is it possible to get this by keeping the conversations in two different indexes?

Of course.

 POST  /index1,index2/_search
  "sort": {
    "updatedTime": {
      "order": "desc"
1 Like

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.