Btw, to be more clear, I understand we can do this individually for each
document (i.e., only percolate each document, then add each document
selectively). But is there a bulk API to do this?
On Tuesday, July 24, 2012 1:18:46 AM UTC-4, tiftif wrote:
Our current setup looks like this:
We have a bunch of queries defined in ES (just a few)
We have an incoming data stream.
We percolate (and thus add) each document into ES.
We check the resulting queries from percolation. If no queries matched,
we delete the added document.
The problem is that we are constantly adding and removing documents into
ES. Just running ES for 2 days runs out of memory for some reason.
Is there a way to conditionally add a document only if it matches one or
more queries after percolation?
Btw, to be more clear, I understand we can do this individually for each document (i.e., only percolate each document, then add each document selectively). But is there a bulk API to do this?
On Tuesday, July 24, 2012 1:18:46 AM UTC-4, tiftif wrote:
Our current setup looks like this:
We have a bunch of queries defined in ES (just a few)
We have an incoming data stream.
We percolate (and thus add) each document into ES.
We check the resulting queries from percolation. If no queries matched, we delete the added document.
The problem is that we are constantly adding and removing documents into ES. Just running ES for 2 days runs out of memory for some reason.
Is there a way to conditionally add a document only if it matches one or more queries after percolation?
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.