From 857ec84c151873ff8b11d8d87316ef035e0d60ec Mon Sep 17 00:00:00 2001 From: Koji Sekiguchi Date: Thu, 21 Jul 2011 03:49:03 +0000 Subject: [PATCH] SOLR-2429: fix for highlighting git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1149028 13f79535-47bb-0310-9956-ffa450edef68 --- solr/core/src/java/org/apache/solr/search/QParser.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/solr/core/src/java/org/apache/solr/search/QParser.java b/solr/core/src/java/org/apache/solr/search/QParser.java index a8b7cf825d8..8b3cabce852 100755 --- a/solr/core/src/java/org/apache/solr/search/QParser.java +++ b/solr/core/src/java/org/apache/solr/search/QParser.java @@ -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 debugInfo) {