The consequences of manually changing the mapping of the destination index after reindexing has started

Hello everyone!

I am new to Elasticsearch and will highly appreciate any reply.

My task is to do reindexing.
Without configuring settings, mappings or even creating the destination index, I started reindexing straight away. Later when some portion of documents had already been reindexed I realized the mapping of the destination index (which Elasticsearch automatically created since I didn't create mapping explicitly ) lacks one field called "oban_job".

So my questions are:

  1. How come Elasticsearch left out "oban_job" field in the mapping of the destination index? And how is it possible that no errors occurred during reindexing process given that one field of the source index was absent in the destination index?

  2. If I manually add "oban_job" field with its corresponding type into the mapping of destination index will I have to delete all the documents that have already been reindexed and start reindexing from scratch or no need for deleting?

Thank you in advance!

Welcome to our community! :smiley:

  1. You'd need to share more information for us to provide comments. Mappings, the reindex request etc
  2. Either that or do an update by query

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