# Elasticsearch help understanding Update by query version conflicts

**URL:** <https://discuss.elastic.co/t/elasticsearch-help-understanding-update-by-query-version-conflicts/280838>\
**Category:** Elasticsearch\
**Created:** [August 9, 2021, 4:25pm UTC](https://discuss.elastic.co/t/elasticsearch-help-understanding-update-by-query-version-conflicts/280838 "2021-08-09T16:25:13Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![mgargi01](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mgargi01/32/80928_2.png) [@mgargi01](https://discuss.elastic.co/u/mgargi01)\
**Post date:** [August 9, 2021, 4:25pm UTC](https://discuss.elastic.co/t/elasticsearch-help-understanding-update-by-query-version-conflicts/280838/1 "2021-08-09T16:25:13Z")

</div>

Hi -

ELastic 7.6.1:

I am adding some new field mappings to my index.  
the index is set to "dynamic" : "strict", so after the mappings are added,

I run:

POST index.test/\_update\_by\_query?refresh&conflicts=proceed

to update the indexing to allow searching by new fields as per the docs:

> **[Update By Query API | Elasticsearch Guide \[7.14\] | Elastic](https://www.elastic.co/guide/en/elasticsearch/reference/current/docs-update-by-query.html)**

Running:

GET \_tasks?detailed=true&actions=\*byquery

to look at the job status -  
The first time I ran the update query, I get many many version conflicts.

At the time, no data is being fed into the cluster. None of the existing records have any data anywhere near the new field mappings.

So, what would produce a version conflict here if we aren't inserting any data ? and just refreshing a new field mapping.

To make it more interesting, if I run the update by query a second time, there are no version conflicts.

Can someone shed some light on whats happening here, and will any of these conflicts mean I cant search by the new fields when new records are inserted? ( i have no data for the new fields on the existing records)

If there are conflicts the first time, why would they disappear the second time?

Thank You

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [September 6, 2021, 4:25pm UTC](https://discuss.elastic.co/t/elasticsearch-help-understanding-update-by-query-version-conflicts/280838/2 "2021-09-06T16:25:19Z")

</div>

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