FVH should use the parsed query, and not a possible rewritten query
This commit is contained in:
parent
8f392af207
commit
537d9c5db0
|
@ -231,7 +231,7 @@ public class HighlightPhase implements SearchHitPhase {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
FastVectorHighlighter highlighter = new FastVectorHighlighter(true, false, fragListBuilder, fragmentsBuilder);
|
FastVectorHighlighter highlighter = new FastVectorHighlighter(true, false, fragListBuilder, fragmentsBuilder);
|
||||||
FieldQuery fieldQuery = buildFieldQuery(highlighter, context.query(), hitContext.reader(), field);
|
FieldQuery fieldQuery = buildFieldQuery(highlighter, context.parsedQuery().query(), hitContext.reader(), field);
|
||||||
|
|
||||||
String[] fragments;
|
String[] fragments;
|
||||||
try {
|
try {
|
||||||
|
|
Loading…
Reference in New Issue