Unique id for multiple indices having same alias

Is it possible to set unique id for multiple indices having same alias?
for example I have 2 indices A001 and A002 under alias A .
A001 have data with id as "1" and A002 dont have data with id "1" and my write index is A002.
Now If I try to add data with id "1" in Index "A" it is creating a new entry in index A002.
How can I make it update data with id "1" in Index A001 ?

No, that is not possible. Elasticsearch can only enforce uniqueness per index.

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