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?
Here is a gist demonstrating this: https://gist.github.com/3899939