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: https://github.com/elasticsearch/elasticsearch/pull/6928 I hope this explains. On 30 October 2014 13:23, Alexander Jiteg <[email protected]> wrote: > 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. >> >> Example: >> https://gist.github.com/alexndr79/760314b8b5f49157a839#file- >> percolation_with_terms_lookup-txt >> >> 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. >> >> I'm running ES 1.3.4. >> >> Suggestions? >> >> /Alex >> > -- > You received this message because you are subscribed to the Google Groups > "elasticsearch" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/elasticsearch/b185c84f-328f-4f4b-85c6-50a746919cb6%40googlegroups.com > <https://groups.google.com/d/msgid/elasticsearch/b185c84f-328f-4f4b-85c6-50a746919cb6%40googlegroups.com?utm_medium=email&utm_source=footer> > . > > For more options, visit https://groups.google.com/d/optout. > -- Met vriendelijke groet, Martijn van Groningen -- You received this message because you are subscribed to the Google Groups "elasticsearch" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/CA%2BA76Txpxivfh1bn4K6dqcHvz5qxGd_0xPOPgvDbxn-p%3Dgx%3DYA%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
