SOLR-2429: fix for highlighting

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1149028 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Koji Sekiguchi 2011-07-21 03:49:03 +00:00
parent 82d74a2e86
commit 857ec84c15
1 changed files with 2 additions and 1 deletions

View File

@ -259,7 +259,8 @@ public abstract class QParser {
}
public Query getHighlightQuery() throws ParseException {
return getQuery();
Query query = getQuery();
return query instanceof WrappedQuery ? ((WrappedQuery)query).getWrappedQuery() : query;
}
public void addDebugInfo(NamedList<Object> debugInfo) {