Elasticsearch compare two different index

Hello all,
I have two different index say index 1 and index 2 I have to find out whether the field which is present in index 2 is also in index 1 say for e.g index 1 has a field called domainname:xyz.com and index 2 has a field name called dname:xyz.com so i have to find out whether the first index fields contains the values of second index . How to do it? Please guide

Thanks in advance

I assume the field should have the same value for a document with the same unique id in both indices. I think there is no other way than iterating over all documents that have that field set (e.g. using scroll and the exists query) and checking the value in the second index.

Thanks christoph will check.

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