To recreate the issue (against ES 0.20.0 RC1), please see this bash script:
Basically a document with field1: A and field2: B will match against a
percolator for the exact phrase "A B" even though that exact phrase does
not occur in either field, but only when the fields are concatenated.
Just wondering if a fix for this is on any road map. Thanks.
Basically a document with field1: A and field2: B will match against a
percolator for the exact phrase "A B" even though that exact phrase
does not occur in either field, but only when the fields are
concatenated.
The reason for this is that the values from field1 and field2 are being
concatenated and indexed in the _all field, which is what you are
querying.
You have two choices:
query field1 and field2 separately, instead of the _all field
set the position_offset_gap of the _all field to (eg) 100
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.