Elastic search duplicate document with same Id and different routing

While indexing using logstash from db to elastic, we got duplicate documents with same Id and different routing.how canwe fix this

Welcome!

You will probably need to reindex and provide the right _id and the right _routing key.

After either deleting single documents or fully reindexing your data you can ensure, that routing is required when a document is indexed in the future.

See _routing field | Elasticsearch Guide [7.12] | Elastic

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