mirror of https://github.com/apache/lucene.git
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:
parent
82d74a2e86
commit
857ec84c15
|
@ -259,7 +259,8 @@ public abstract class QParser {
|
||||||
}
|
}
|
||||||
|
|
||||||
public Query getHighlightQuery() throws ParseException {
|
public Query getHighlightQuery() throws ParseException {
|
||||||
return getQuery();
|
Query query = getQuery();
|
||||||
|
return query instanceof WrappedQuery ? ((WrappedQuery)query).getWrappedQuery() : query;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void addDebugInfo(NamedList<Object> debugInfo) {
|
public void addDebugInfo(NamedList<Object> debugInfo) {
|
||||||
|
|
Loading…
Reference in New Issue