Just wondering what is your setup ?
Do you have multiple nodes? Only one embedded instance in your own project?
Where do you see OOM? On the Elasticsearch nodes?
How do you percolate? With a Node Client or with a Transport Client ?
De : firstname.lastname@example.org [mailto:email@example.com] De la part de tiftif
Envoyé : mardi 24 juillet 2012 07:26
À : firstname.lastname@example.org
Objet : Re: Conditionally add document only if percolator matches a query
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?