I want to save the query JSON as it as in a field in an ES index. I should
be able to retrieve queries and run it at a later time. I don't need
features like percolator. I am using Java client to index and retrieve.
I don't get your point, can you describe more detail?
On Tuesday, December 31, 2013 8:23:22 AM UTC+8, Search User wrote:
I want to save the query JSON as it as in a field in an ES index. I should
be able to retrieve queries and run it at a later time. I don't need
features like percolator. I am using Java client to index and retrieve.
I want to save the queries my users are executing and let them re-run at a
later time.
Thanks,
On Tuesday, December 31, 2013 1:21:16 AM UTC-5, Daniel Guo wrote:
I don't get your point, can you describe more detail?
On Tuesday, December 31, 2013 8:23:22 AM UTC+8, Search User wrote:
I want to save the query JSON as it as in a field in an ES index. I
should be able to retrieve queries and run it at a later time. I don't need
features like percolator. I am using Java client to index and retrieve.
you could simply use the toString(), or even better the toXContent()
representation of a query and store it in another index, when executing
queries using your java API.
Alternatively you could set the thresholds for the slow index log very log
and thus log every index operation (this has a performance impact), see
I want to save the queries my users are executing and let them re-run at a
later time.
Thanks,
On Tuesday, December 31, 2013 1:21:16 AM UTC-5, Daniel Guo wrote:
I don't get your point, can you describe more detail?
On Tuesday, December 31, 2013 8:23:22 AM UTC+8, Search User wrote:
I want to save the query JSON as it as in a field in an ES index. I
should be able to retrieve queries and run it at a later time. I don't need
features like percolator. I am using Java client to index and retrieve.
I have an identical requirement and have a question: if we save the query
using toXContent() would the same query work fine when the version of
Elasticsearch changes (say it went through some major version change)?
-Amit.
On Wed, Jan 1, 2014 at 12:27 PM, Alexander Reelsen alr@spinscale.de wrote:
Hey,
you could simply use the toString(), or even better the toXContent()
representation of a query and store it in another index, when executing
queries using your java API.
Alternatively you could set the thresholds for the slow index log very log
and thus log every index operation (this has a performance impact), see
I want to save the queries my users are executing and let them re-run at
a later time.
Thanks,
On Tuesday, December 31, 2013 1:21:16 AM UTC-5, Daniel Guo wrote:
I don't get your point, can you describe more detail?
On Tuesday, December 31, 2013 8:23:22 AM UTC+8, Search User wrote:
I want to save the query JSON as it as in a field in an ES index. I
should be able to retrieve queries and run it at a later time. I don't need
features like percolator. I am using Java client to index and retrieve.
I am not sure I understand your concern. Of course, there is a possibility
that the toXContent() method possibly changes over versions, but it didnt
for quite some time (as this would also change the JSON response format)
and I think it makes sense to be pretty conservative with changes there...
I have an identical requirement and have a question: if we save the query
using toXContent() would the same query work fine when the version of
Elasticsearch changes (say it went through some major version change)?
-Amit.
On Wed, Jan 1, 2014 at 12:27 PM, Alexander Reelsen alr@spinscale.dewrote:
Hey,
you could simply use the toString(), or even better the toXContent()
representation of a query and store it in another index, when executing
queries using your java API.
Alternatively you could set the thresholds for the slow index log very
log and thus log every index operation (this has a performance impact), see
I want to save the queries my users are executing and let them re-run at
a later time.
Thanks,
On Tuesday, December 31, 2013 1:21:16 AM UTC-5, Daniel Guo wrote:
I don't get your point, can you describe more detail?
On Tuesday, December 31, 2013 8:23:22 AM UTC+8, Search User wrote:
I want to save the query JSON as it as in a field in an ES index. I
should be able to retrieve queries and run it at a later time. I don't need
features like percolator. I am using Java client to index and retrieve.
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.