lucene-java-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From yo...@apache.org
Subject svn commit: r392017 - in /lucene/java/trunk: CHANGES.txt src/java/org/apache/lucene/index/ParallelReader.java
Date Thu, 06 Apr 2006 17:25:04 GMT
Author: yonik
Date: Thu Apr  6 10:25:02 2006
New Revision: 392017

URL: http://svn.apache.org/viewcvs?rev=392017&view=rev
Log:
LUCENE-512: Fixed ClassCastException in ParallelReader.getTermFreqVectors

Modified:
    lucene/java/trunk/CHANGES.txt
    lucene/java/trunk/src/java/org/apache/lucene/index/ParallelReader.java

Modified: lucene/java/trunk/CHANGES.txt
URL: http://svn.apache.org/viewcvs/lucene/java/trunk/CHANGES.txt?rev=392017&r1=392016&r2=392017&view=diff
==============================================================================
--- lucene/java/trunk/CHANGES.txt (original)
+++ lucene/java/trunk/CHANGES.txt Thu Apr  6 10:25:02 2006
@@ -44,6 +44,8 @@
  9. LUCENE-514: Added getTermArrays() and extractTerms() to
     MultiPhraseQuery (Eric Jain & Yonik Seeley)
 
+10. LUCENE-512: Fixed ClassCastException in ParallelReader.getTermFreqVectors
+    (frederic via Yonik)
 
 1.9.1
 

Modified: lucene/java/trunk/src/java/org/apache/lucene/index/ParallelReader.java
URL: http://svn.apache.org/viewcvs/lucene/java/trunk/src/java/org/apache/lucene/index/ParallelReader.java?rev=392017&r1=392016&r2=392017&view=diff
==============================================================================
--- lucene/java/trunk/src/java/org/apache/lucene/index/ParallelReader.java (original)
+++ lucene/java/trunk/src/java/org/apache/lucene/index/ParallelReader.java Thu Apr  6 10:25:02
2006
@@ -150,8 +150,8 @@
     Iterator i = fieldToReader.entrySet().iterator();
     while (i.hasNext()) {
       Map.Entry e = (Map.Entry)i.next();
-      IndexReader reader = (IndexReader)e.getKey();
-      String field = (String)e.getValue();
+      String field = (String)e.getKey();
+      IndexReader reader = (IndexReader)e.getValue();
       TermFreqVector vector = reader.getTermFreqVector(n, field);
       if (vector != null)
         results.add(vector);



Mime
View raw message