lucene-java-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From markrmil...@apache.org
Subject svn commit: r832212 - in /lucene/java/branches/lucene_2_9/contrib/highlighter/src: java/org/apache/lucene/search/highlight/WeightedSpanTermExtractor.java test/org/apache/lucene/search/highlight/HighlighterTest.java
Date Tue, 03 Nov 2009 00:01:39 GMT
Author: markrmiller
Date: Tue Nov  3 00:01:38 2009
New Revision: 832212

URL: http://svn.apache.org/viewvc?rev=832212&view=rev
Log:
LUCENE-2013: fix bug in the backport

Modified:
    lucene/java/branches/lucene_2_9/contrib/highlighter/src/java/org/apache/lucene/search/highlight/WeightedSpanTermExtractor.java
    lucene/java/branches/lucene_2_9/contrib/highlighter/src/test/org/apache/lucene/search/highlight/HighlighterTest.java

Modified: lucene/java/branches/lucene_2_9/contrib/highlighter/src/java/org/apache/lucene/search/highlight/WeightedSpanTermExtractor.java
URL: http://svn.apache.org/viewvc/lucene/java/branches/lucene_2_9/contrib/highlighter/src/java/org/apache/lucene/search/highlight/WeightedSpanTermExtractor.java?rev=832212&r1=832211&r2=832212&view=diff
==============================================================================
--- lucene/java/branches/lucene_2_9/contrib/highlighter/src/java/org/apache/lucene/search/highlight/WeightedSpanTermExtractor.java
(original)
+++ lucene/java/branches/lucene_2_9/contrib/highlighter/src/java/org/apache/lucene/search/highlight/WeightedSpanTermExtractor.java
Tue Nov  3 00:01:38 2009
@@ -486,7 +486,7 @@
     } else if (spanQuery instanceof SpanNotQuery) {
       collectSpanQueryFields(((SpanNotQuery)spanQuery).getInclude(), fieldNames);
     } else if (spanQuery instanceof SpanOrQuery) {
-      SpanQuery[] clauses = ((SpanNearQuery)spanQuery).getClauses();
+      SpanQuery[] clauses = ((SpanOrQuery)spanQuery).getClauses();
       for(int i = 0; i < clauses.length; i++) {
         collectSpanQueryFields(clauses[i], fieldNames);
       }

Modified: lucene/java/branches/lucene_2_9/contrib/highlighter/src/test/org/apache/lucene/search/highlight/HighlighterTest.java
URL: http://svn.apache.org/viewvc/lucene/java/branches/lucene_2_9/contrib/highlighter/src/test/org/apache/lucene/search/highlight/HighlighterTest.java?rev=832212&r1=832211&r2=832212&view=diff
==============================================================================
--- lucene/java/branches/lucene_2_9/contrib/highlighter/src/test/org/apache/lucene/search/highlight/HighlighterTest.java
(original)
+++ lucene/java/branches/lucene_2_9/contrib/highlighter/src/test/org/apache/lucene/search/highlight/HighlighterTest.java
Tue Nov  3 00:01:38 2009
@@ -270,7 +270,7 @@
     hits = searcher.search(query);
     int maxNumFragmentsRequired = 2;
 
-    QueryScorer scorer = new QueryScorer(query, FIELD_NAME);
+    QueryScorer scorer = new QueryScorer(query, null);
     Highlighter highlighter = new Highlighter(this, scorer);
     
     for (int i = 0; i < hits.length(); i++) {



Mime
View raw message