# Any support for updateDocValues?

**URL:** <https://discuss.elastic.co/t/any-support-for-updatedocvalues/106752>\
**Category:** Elasticsearch\
**Created:** [November 7, 2017, 8:05pm UTC](https://discuss.elastic.co/t/any-support-for-updatedocvalues/106752 "2017-11-07T20:05:55Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![danielcoconnor](https://avatars.discourse-cdn.com/v4/letter/d/82dd89/32.png) [@danielcoconnor](https://discuss.elastic.co/u/danielcoconnor)\
**Post date:** [November 7, 2017, 8:05pm UTC](https://discuss.elastic.co/t/any-support-for-updatedocvalues/106752/1 "2017-11-07T20:05:55Z")

</div>

I've been hunting through the latest documentation and I cannot find any reference to the use of:

updateDocValues() -- [https://lucene.apache.org/core/6\_0\_1/core/org/apache/lucene/index/IndexWriter.html#updateDocValues-org.apache.lucene.index.Term-org.apache.lucene.document.Field](https://lucene.apache.org/core/6_0_1/core/org/apache/lucene/index/IndexWriter.html#updateDocValues-org.apache.lucene.index.Term-org.apache.lucene.document.Field)...-

which allows for doc values to be updated without deleting and reindexing the entire document.

Can anyone provide a pointer or some info?

Thanks  
Dan

---

<div class="post-metadata">

**Author:** ![jimczi](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jimczi/32/47985_2.png) [@jimczi](https://discuss.elastic.co/u/jimczi)\
**Post date:** [November 8, 2017, 10:30am UTC](https://discuss.elastic.co/t/any-support-for-updatedocvalues/106752/2 "2017-11-08T10:30:36Z")

</div>

We don't use this feature in Elasticsearch. Instead we provide a way to apply partial updates to documents but this requires to reindex the entire document. The doc\_values update is a complex feature that requires a lot of synchronizations and indirections so we're not using it at the moment. Though we're actively following this feature in Lucene and we try to revisit our statement every time a new improvement is made in this area. For the time being we think that the cost and complexity to handle this kind of update is too high compared to simply reindexing the document.

---

<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:** [December 6, 2017, 10:30am UTC](https://discuss.elastic.co/t/any-support-for-updatedocvalues/106752/3 "2017-12-06T10:30:39Z")

</div>

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