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?
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.
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?
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.