1.Created two indexes and with same alias name
2.Inseart document with _id in "doc1" index with alias
3.Insert same document with same _id in "doc2" with alias
4.Search with _id and Search result should return only one document with latest updated time stamp document.
I have developed aggregations and able to see duplicate documents but need to remove those duplicate documents from search result
Please help me how can we delete the duplicate documents from search result