Delete Duplicate id documents in Search Result

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

Welcome to our community! :smiley:

It'd be useful if you could share the requests that you ran for your steps, and the response of the query where you see the duplicates.

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