Percolator usage confusion

I'm a bit confused about the use of percolator, I've got a use case
that I think it might apply, but after playing with it for a while I
can't figure out if that's the best match. I was wondering if someone
can give me insights about this

I'm planning to use as part of an "alerts" system we need to
implement, thus, if a new "document" matching the user query is
inserted, then we'll proceed to email the user with the latest
results.

For the sake of simplification, let's say I've got a index with
"books" as documents (title, author, print date, isbn, etc), then
users register for an alert, e.g. "author = John Doe,
since=2011-11-10".

During the day a lot of new books are inserted in the index. Can I use
the percolator to know out of the new inserted books which one needs
to be send as alerts?

Reading the documentation seems that I need to apply the percolator
function to each inserted document. Is there a way to use percolator
as a means to get me all the queries we need to run to alert the
users?

Thanks

~M

Percolate will return matching queries when you index a document. You can
potentially simply implement the alerts by executing scheduled queries if
it fits your use case better.

On Fri, Nov 11, 2011 at 7:22 PM, maverick mauricio.alarcon@gmail.comwrote:

I'm a bit confused about the use of percolator, I've got a use case
that I think it might apply, but after playing with it for a while I
can't figure out if that's the best match. I was wondering if someone
can give me insights about this

I'm planning to use as part of an "alerts" system we need to
implement, thus, if a new "document" matching the user query is
inserted, then we'll proceed to email the user with the latest
results.

For the sake of simplification, let's say I've got a index with
"books" as documents (title, author, print date, isbn, etc), then
users register for an alert, e.g. "author = John Doe,
since=2011-11-10".

During the day a lot of new books are inserted in the index. Can I use
the percolator to know out of the new inserted books which one needs
to be send as alerts?

Reading the documentation seems that I need to apply the percolator
function to each inserted document. Is there a way to use percolator
as a means to get me all the queries we need to run to alert the
users?

Thanks

~M