How can I return results having a unique id field (i.e. no duplicates) when requesting a multisearch or search?

I am running a query against my index and when I do a multisearch or search, I get duplicate results.

I have specified the _id with a unique value, but I am still seeing duplicates.

Is there a filter aggregation, or other option that I must apply so that the hits and total that I get back from elasticsearch does not include duplicates?

@aorona
Multi Search runs multiple independent search queries, so duplicates are expected. A document may match query 1 but not query 2. Merging search results does not make sense. Aggregates work at single query level. Multi Search is a batching mechanism not a query.

But _search should not return duplicates. Can you please post you mappings, some sample docs and the search query?