lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Karl Wettin (JIRA)" <>
Subject [jira] Created: (LUCENE-1042) discrepancy in getTermFreqVector-methods
Date Thu, 01 Nov 2007 19:59:50 GMT
discrepancy in getTermFreqVector-methods 

                 Key: LUCENE-1042
             Project: Lucene - Java
          Issue Type: Bug
          Components: Term Vectors
    Affects Versions: 2.3
            Reporter: Karl Wettin

getTermFreqVector(int, TermVectorMapper) never calls the mapper if there is no term vector,
consitent with all the other getTermFreqVector methods that returns null. 

getTermFreqVector(int, String, TermVectorMapper) throws an IOException when a field does not
contain the term vector.

My suggestion:

Index: src/java/org/apache/lucene/index/
--- src/java/org/apache/lucene/index/ (revision 590149)
+++ src/java/org/apache/lucene/index/ (working copy)
@@ -648,7 +648,7 @@
     FieldInfo fi = fieldInfos.fieldInfo(field);
     if (fi == null || !fi.storeTermVector || termVectorsReaderOrig == null)
-      throw new IOException("field does not contain term vectors");
+      return; 

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message