I expected it to match the 'andrei' query. If I PUT the exact same
query into the index again (incrementing the version to 2), it starts
matching. Anyone else see this?
I expected it to match the 'andrei' query. If I PUT the exact same
query into the index again (incrementing the version to 2), it starts
matching. Anyone else see this?
In 0.19.4 we fixed several bugs relating to wrong parsing of percolated
queries which caused the problem you see now. What happens is that the
query is indexed before actual types are derived for the specific docs
(specifically, the fact that price is numeric), so a simple term range
filter is created for it. This will not match the numeric value. Once a doc
is percolated, the "price" field type is set to numeric automatically, and
then when you register the query again, it properly creates the special
numeric range filter.
We should simplify and handle this case, but at least the above is the
reasoning for why it happens. You can introduce the mappings when creating
the index as a workaround.
I expected it to match the 'andrei' query. If I PUT the exact same
query into the index again (incrementing the version to 2), it starts
matching. Anyone else see this?
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.