Remove duplicates in cross cluster search

Hi,

I'm using cross cluster search and searching for a document by _id that exists in both clusters.
ES returns with 2 hits (1 in local index, 1 in remote index). I just want the one in the local index. How can I remove the duplicate from the remote cluster ?

Query :

GET http://localhost:9200/index1,remote_cluster:index1/_search
{
"query": {
"terms": {
"_id": [ "123"]
}
}
}

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