LUCENE-512: Fixed ClassCastException in ParallelReader.getTermFreqVectors

git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@392017 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Yonik Seeley 2006-04-06 17:25:02 +00:00
parent fc0d666c81
commit d214dd8cd1
2 changed files with 4 additions and 2 deletions

View File

@ -44,6 +44,8 @@ Bug fixes
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

View File

@ -150,8 +150,8 @@ public class ParallelReader extends IndexReader {
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);