Percolate on all indexes/all doc of same type

Hello.

I'm using ES in REST to index same type of document over multiples
indexes, and I was planning to use percolate to permit users to write
rules. Those rules may be restricted to a single index, but may be for
all the documents of a type on all indexes.

I'd like to know if there's a way to use register and percolate
queries on all the indexes or to percolate a resultset from a query, I
did not find anything like this on documentation nor mailing list. API
shows examples for percolating on one single index.

Thanks

Aurélien.

No, you can't register a percolate query against all indices..., it has to
be on a specific index.

On Thu, Dec 1, 2011 at 5:33 PM, Aurélien aurelien.dehay@gmail.com wrote:

Hello.

I'm using ES in REST to index same type of document over multiples
indexes, and I was planning to use percolate to permit users to write
rules. Those rules may be restricted to a single index, but may be for
all the documents of a type on all indexes.

I'd like to know if there's a way to use register and percolate
queries on all the indexes or to percolate a resultset from a query, I
did not find anything like this on documentation nor mailing list. API
shows examples for percolating on one single index.

Thanks

Aurélien.

But you can make it work similar to the way you want. The way we do it is
to assign dummy indexes, 'includes', and 'excludes'. When a rule is set
up as an include the return values from percolate tells us which index(es)
the document needs to be stored into. Similarly, when a rule is set up as
an exclude the return values from percolate tell us which index(es) the
document needs to be excluded from. The difference between these two sets
of indexes determines if and where the document is stored.

Hope this helps.

...Ken

On Sun, Dec 4, 2011 at 8:06 AM, Shay Banon kimchy@gmail.com wrote:

No, you can't register a percolate query against all indices..., it has to
be on a specific index.

On Thu, Dec 1, 2011 at 5:33 PM, Aurélien aurelien.dehay@gmail.com wrote:

Hello.

I'm using ES in REST to index same type of document over multiples
indexes, and I was planning to use percolate to permit users to write
rules. Those rules may be restricted to a single index, but may be for
all the documents of a type on all indexes.

I'd like to know if there's a way to use register and percolate
queries on all the indexes or to percolate a resultset from a query, I
did not find anything like this on documentation nor mailing list. API
shows examples for percolating on one single index.

Thanks

Aurélien.