I have two indices which overlap with data, but there are some differences.
What I would like, is to copy documents from
index1.someField != index2.someField.
someField being a custom unique field which can be used for scripting here.
So for every document in
index1, it would need to check if a document already exists in
index2 with the same
someField value, and skip that document if it does exist.
Basically, copying index1 to index2, but avoiding duplicates.
Could this be done with a combination of painless and a reindex, or is there some other/better way to do this? Any help would be greatly appreciated.