hi,
im wondering how this is possible, seems counter intuitive. lets say, there
is a document in ES with id "1" and it has a field called "num_actions" and
the value is 1. in order to increment just the value of "num_actions", i
create another document, copy the original fields into new content builder
and then make the "num_actions" = 2. after i store the document in the
index, it shows that it has 2 fields, both with the name "num_actions" with
values 1 and 2.
What you end up doing there is generate a document with two fields with teh
same name. You can always update the field on the Map you get back from the
get response, and then pass that Map to the index request (it accepts a map
as well as the source).
hi,
im wondering how this is possible, seems counter intuitive. lets say,
there is a document in ES with id "1" and it has a field called
"num_actions" and the value is 1. in order to increment just the value of
"num_actions", i create another document, copy the original fields into new
content builder and then make the "num_actions" = 2. after i store the
document in the index, it shows that it has 2 fields, both with the name
"num_actions" with values 1 and 2.
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.