FVH should use the parsed query, and not a possible rewritten query

This commit is contained in:
Shay Banon 2011-11-15 16:45:05 +02:00
parent 8f392af207
commit 537d9c5db0
1 changed files with 1 additions and 1 deletions

View File

@ -231,7 +231,7 @@ public class HighlightPhase implements SearchHitPhase {
}
}
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;
try {