Sorry , im newbie in elasticsearch and i have a question.
I read in
https://www.elastic.co/guide/en/elasticsearch/reference/master/docs-update.html
and https://www.elastic.co/guide/en/elasticsearch/client/java-api/current/java-docs-update.html
I saw there more way update index. UpdateRequest ,prepareUpdate() method, Update by script
My question is : What different about it and what faster ?
It's useful when you have very big documents. Let say thousands of fields.
Instead of sending on the network mb of data you can in that case just send a smaller amount of data.
Behind the scene, elasticsearch will get the original doc, update it in memory using what you send as update (script or part of the doc), then will PUT this new version of the doc.
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.