I am using the update by query pluginhttps://github.com/yakaz/elasticsearch-action-updatebyquery
. I only want to update one of the elements that match my query at a
time and the "size=1" is not working. Is there any other possibility to set
the number of returned elements to 1.
What I actually want is just a "update (table) set (column) where
(predicate) order by (column) desc limit 1" in sql syntax. Is that possible
at all in ES???
Thanks!
El jueves, 19 de diciembre de 2013 15:52:21 UTC+1, Adrian Luna escribió:
I am using the update by query pluginhttps://github.com/yakaz/elasticsearch-action-updatebyquery
. I only want to update one of the elements that match my query at a
time and the "size=1" is not working. Is there any other possibility to set
the number of returned elements to 1.
What I actually want is just a "update () set () where () limit 1" in sql
syntax.
If possible, also with an aditional "order by (column) desc".
Is that possible at all in ES???
Thanks!
El jueves, 19 de diciembre de 2013 15:52:21 UTC+1, Adrian Luna escribió:
I am using the update by query pluginhttps://github.com/yakaz/elasticsearch-action-updatebyquery
. I only want to update one of the elements that match my query at a
time and the "size=1" is not working. Is there any other possibility to set
the number of returned elements to 1.
What I actually want is just a "update () set () where () limit 1" in sql syntax.
If possible, also with an aditional "order by (column) desc".
Is that possible at all in ES???
Thanks!
El jueves, 19 de diciembre de 2013 15:52:21 UTC+1, Adrian Luna escribió:
I am using the update by query plugin . I only want to update one of the elements that match my query at a time and the "size=1" is not working. Is there any other possibility to set the number of returned elements to 1.
I want to have several processes reindexing documents with updated
information if it isn't already updated/being updated by other process.
Thus, with the query I'll check a flag, and update its state to processing
(atomic operation). The next process will come up and select a still
non-processed document, since the flag is updated.
I guess if the plugin allows to do this for the complete set of matched
documents, it should be possible to do it for just 1 doc.
Thanks in advance.
El viernes, 20 de diciembre de 2013 10:26:36 UTC+1, David Pilato escribió:
Le 20 décembre 2013 at 09:49:09, Adrian Luna (adrian.l...@gmail.com<javascript:>)
a écrit:
Any clue?
What I actually want is just a "update () set () where () limit 1" in sql
syntax.
If possible, also with an aditional "order by (column) desc".
Is that possible at all in ES???
Thanks!
El jueves, 19 de diciembre de 2013 15:52:21 UTC+1, Adrian Luna escribió:
I am using the update by query pluginhttps://github.com/yakaz/elasticsearch-action-updatebyquery
. I only want to update one of the elements that match my query at a
time and the "size=1" is not working. Is there any other possibility to set
the number of returned elements to 1.
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.