A query wrapped in a "constant_score" inside a "should" of a "bool" doesn't
highlight. inside a "must" it does and without the "constant_score" it does
too. Is this intentional or a bug? If it's intentional, what is the
reasoning behind it...?
On Tuesday, October 16, 2012 5:29:34 PM UTC+2, wires wrote:
A query wrapped in a "constant_score" inside a "should" of a "bool"
doesn't highlight. inside a "must" it does and without the "constant_score"
it does too. Is this intentional or a bug? If it's intentional, what is the
reasoning behind it...?
I think this is a "limitation" / "bug" in ES. The lucene highlighter
doesn't support this at all out of the box and the ES highlighter only
supports the must case since it optimizes the boolean query if it only has
a single clause. can you create an issue for this problem on github?
On Tuesday, October 16, 2012 11:26:20 PM UTC+2, simonw wrote:
hey,
On Tuesday, October 16, 2012 5:29:34 PM UTC+2, wires wrote:
A query wrapped in a "constant_score" inside a "should" of a "bool"
doesn't highlight. inside a "must" it does and without the "constant_score"
it does too. Is this intentional or a bug? If it's intentional, what is the
reasoning behind it...?
I think this is a "limitation" / "bug" in ES. The lucene highlighter
doesn't support this at all out of the box and the ES highlighter only
supports the must case since it optimizes the boolean query if it only has
a single clause. can you create an issue for this problem on github?
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.