Any update operation will result in a full reindex of the document, so I don’t think there is a more efficient way. How frequently are you updating a single document?
Frequent updates of a single document is inefficient as it results in a lot of small refreshes and merges, so it would be better to aggregate in memory in the client and the store this periodically in Elasticsearch.
Christian,
Client level aggregation is not possible in our use-case because we are dealing with millions of docs. So can we bring the document at the client side, compute the value and then write to ES? will this be faster then scripted update?
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.