Hi,
Is there a more efficient way to increment an integer field besides
reading the entire document, updating the number, and re-indexing the
document?
Thanks,
Frank
Hi,
Is there a more efficient way to increment an integer field besides
reading the entire document, updating the number, and re-indexing the
document?
Thanks,
Frank
I believe you can do it with a script in the new release candidate:
specific issue:
-Luke
On Feb 8, 12:18 pm, Frank LaRosa fr...@studyblue.com wrote:
Hi,
Is there a more efficient way to increment an integer field besides
reading the entire document, updating the number, and re-indexing the
document?Thanks,
Frank
Thanks Luke. That looks extremely powerful indeed, if it works as
advertised.
I'm somewhat curious as to how the server actually executes the script
-- I'm guessing that since ES is based on Lucene, it still has to read
and rewrite the entire document to the index. However, not having to
pass the document over the network is still a substantial benefit.
Frank
On Feb 8, 12:58 pm, lukeforehand lukeforeh...@gmail.com wrote:
I believe you can do it with a script in the new release candidate:
Elasticsearch Platform — Find real-time answers at scale | Elastic
specific issue:Update API: Allow to update a document based on a script · Issue #1583 · elastic/elasticsearch · GitHub
-Luke
On Feb 8, 12:18 pm, Frank LaRosa fr...@studyblue.com wrote:
Hi,
Is there a more efficient way to increment an integer field besides
reading the entire document, updating the number, and re-indexing the
document?Thanks,
Frank
Yea, the document still needs to be reindexed (I explicitly stated it at the issue and in the guide, just to make sure ).
On Wednesday, February 8, 2012 at 10:45 PM, Frank LaRosa wrote:
Thanks Luke. That looks extremely powerful indeed, if it works as
advertised.I'm somewhat curious as to how the server actually executes the script
-- I'm guessing that since ES is based on Lucene, it still has to read
and rewrite the entire document to the index. However, not having to
pass the document over the network is still a substantial benefit.Frank
On Feb 8, 12:58 pm, lukeforehand <lukeforeh...@gmail.com (http://gmail.com)> wrote:
I believe you can do it with a script in the new release candidate:
Elasticsearch Platform — Find real-time answers at scale | Elastic
specific issue:Update API: Allow to update a document based on a script · Issue #1583 · elastic/elasticsearch · GitHub
-Luke
On Feb 8, 12:18 pm, Frank LaRosa <fr...@studyblue.com (http://studyblue.com)> wrote:
Hi,
Is there a more efficient way to increment an integer field besides
reading the entire document, updating the number, and re-indexing the
document?Thanks,
Frank
© 2020. All Rights Reserved - Elasticsearch
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.