mirror of https://github.com/apache/lucene.git
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:
parent
fc0d666c81
commit
d214dd8cd1
|
@ -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
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue