I'm trying to use a lookup terms filter for percolation but for some reason
I'm not getting any matches when percolating documents that should match
the registered percolator.
Example:
I have noted that if I try to index the same percolator a second time after
the first percolation (that gives not matches) it seems that following
percolations will give the expected result.
Seems that If I index a document with the given type first, it works. That
is probably why my second run works but not the first.
On Thursday, October 30, 2014 9:59:49 AM UTC+1, Alexander Jiteg wrote:
Hi!
I'm trying to use a lookup terms filter for percolation but for some
reason I'm not getting any matches when percolating documents that should
match the registered percolator.
I have noted that if I try to index the same percolator a second time
after the first percolation (that gives not matches) it seems that
following percolations will give the expected result.
In the case of percolator queries are indexed before actual data is
evaluated, which triggers the automatic addition of fields in mappings.
Most of the times this is ok, but there are a number of queries that
require the field mapping to exist before the percolator query is indexed.
Because of this from 1.4.0 and onwards it is required that a field mapping
exists for fields used in percolator queries:
Seems that If I index a document with the given type first, it works.
That is probably why my second run works but not the first.
On Thursday, October 30, 2014 9:59:49 AM UTC+1, Alexander Jiteg wrote:
Hi!
I'm trying to use a lookup terms filter for percolation but for some
reason I'm not getting any matches when percolating documents that should
match the registered percolator.
I have noted that if I try to index the same percolator a second time
after the first percolation (that gives not matches) it seems that
following percolations will give the expected result.
On Monday, November 3, 2014 10:20:38 AM UTC+1, Martijn v Groningen wrote:
In the case of percolator queries are indexed before actual data is
evaluated, which triggers the automatic addition of fields in mappings.
Most of the times this is ok, but there are a number of queries that
require the field mapping to exist before the percolator query is indexed.
Seems that If I index a document with the given type first, it works.
That is probably why my second run works but not the first.
On Thursday, October 30, 2014 9:59:49 AM UTC+1, Alexander Jiteg wrote:
Hi!
I'm trying to use a lookup terms filter for percolation but for some
reason I'm not getting any matches when percolating documents that should
match the registered percolator.
I have noted that if I try to index the same percolator a second time
after the first percolation (that gives not matches) it seems that
following percolations will give the expected result.
Follow up question; What If I change the terms in the looked up filter
after the percolator has been created? Seems that the terms are cached but
even though I have experimented with cache invalidation the only thing I
got working so far is deleting/recreating the percolator for the new terms
to kick in.
On Monday, November 3, 2014 10:20:38 AM UTC+1, Martijn v Groningen wrote:
In the case of percolator queries are indexed before actual data is
evaluated, which triggers the automatic addition of fields in mappings.
Most of the times this is ok, but there are a number of queries that
require the field mapping to exist before the percolator query is indexed.
Seems that If I index a document with the given type first, it works.
That is probably why my second run works but not the first.
On Thursday, October 30, 2014 9:59:49 AM UTC+1, Alexander Jiteg wrote:
Hi!
I'm trying to use a lookup terms filter for percolation but for some
reason I'm not getting any matches when percolating documents that should
match the registered percolator.
I have noted that if I try to index the same percolator a second time
after the first percolation (that gives not matches) it seems that
following percolations will give the expected result.
On Thursday, November 13, 2014 4:44:35 PM UTC+1, Alexander Jiteg wrote:
Follow up question; What If I change the terms in the looked up filter
after the percolator has been created? Seems that the terms are cached but
even though I have experimented with cache invalidation the only thing I
got working so far is deleting/recreating the percolator for the new terms
to kick in.
On Monday, November 3, 2014 10:20:38 AM UTC+1, Martijn v Groningen wrote:
In the case of percolator queries are indexed before actual data is
evaluated, which triggers the automatic addition of fields in mappings.
Most of the times this is ok, but there are a number of queries that
require the field mapping to exist before the percolator query is indexed.
Seems that If I index a document with the given type first, it works.
That is probably why my second run works but not the first.
On Thursday, October 30, 2014 9:59:49 AM UTC+1, Alexander Jiteg wrote:
Hi!
I'm trying to use a lookup terms filter for percolation but for some
reason I'm not getting any matches when percolating documents that should
match the registered percolator.
I have noted that if I try to index the same percolator a second time
after the first percolation (that gives not matches) it seems that
following percolations will give the expected result.
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.