mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-17 02:14:54 +00:00
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…
x
Reference in New Issue
Block a user