lucene-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From k...@apache.org
Subject svn commit: r1149032 - in /lucene/dev/branches/branch_3x: ./ lucene/ lucene/backwards/ lucene/backwards/src/test-framework/ lucene/backwards/src/test/ solr/ solr/core/src/java/org/apache/solr/search/QParser.java
Date Thu, 21 Jul 2011 03:59:10 GMT
Author: koji
Date: Thu Jul 21 03:59:06 2011
New Revision: 1149032

URL: http://svn.apache.org/viewvc?rev=1149032&view=rev
Log:
SOLR-2429: fix for highlighting

Modified:
    lucene/dev/branches/branch_3x/   (props changed)
    lucene/dev/branches/branch_3x/lucene/   (props changed)
    lucene/dev/branches/branch_3x/lucene/backwards/   (props changed)
    lucene/dev/branches/branch_3x/lucene/backwards/src/test/   (props changed)
    lucene/dev/branches/branch_3x/lucene/backwards/src/test-framework/   (props changed)
    lucene/dev/branches/branch_3x/solr/   (props changed)
    lucene/dev/branches/branch_3x/solr/core/src/java/org/apache/solr/search/QParser.java

Modified: lucene/dev/branches/branch_3x/solr/core/src/java/org/apache/solr/search/QParser.java
URL: http://svn.apache.org/viewvc/lucene/dev/branches/branch_3x/solr/core/src/java/org/apache/solr/search/QParser.java?rev=1149032&r1=1149031&r2=1149032&view=diff
==============================================================================
--- lucene/dev/branches/branch_3x/solr/core/src/java/org/apache/solr/search/QParser.java (original)
+++ lucene/dev/branches/branch_3x/solr/core/src/java/org/apache/solr/search/QParser.java Thu
Jul 21 03:59:06 2011
@@ -258,7 +258,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) {



Mime
View raw message