I have 2 indices, index_a
and index_b
.
The 2 indices have documents with the almost the exact same template. index_b
has some extra fields which was introduced as part of a new feature, but it also has all the fields already present in index_a
.
We have noticed that that index_b
is missing about 2000 documents which are present in index_a
. We found this out by using the _count
API.
Now the question is, is there a way to find out the actual missing documents? Only the missing Ids should also be enough for a start.
Both the indices have a field called member_id
which is unique for each document and is the same as the document id, so retrieving only the missing id fields should also be enough.
I cannot compare the index directly to the source database because this data comes from an external API.