lucene-java-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gsing...@apache.org
Subject svn commit: r603061 - in /lucene/java/trunk: CHANGES.txt src/java/org/apache/lucene/index/SegmentReader.java
Date Mon, 10 Dec 2007 21:49:42 GMT
Author: gsingers
Date: Mon Dec 10 13:49:41 2007
New Revision: 603061

URL: http://svn.apache.org/viewvc?rev=603061&view=rev
Log:
LUCENE-1042:  Committed.

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

Modified: lucene/java/trunk/CHANGES.txt
URL: http://svn.apache.org/viewvc/lucene/java/trunk/CHANGES.txt?rev=603061&r1=603060&r2=603061&view=diff
==============================================================================
--- lucene/java/trunk/CHANGES.txt (original)
+++ lucene/java/trunk/CHANGES.txt Mon Dec 10 13:49:41 2007
@@ -181,6 +181,9 @@
 
 24. LUCENE-1071: Fixed SegmentMerger to correctly set payload bit in 
     the merged segment. (Michael Busch)
+
+25. LUCENE-1042: Remove throwing of IOException in getTermFreqVector(int, String, TermVectorMapper)
to be consistent
+    with other getTermFreqVector calls.  Also removed the throwing of the other IOException
in that method to be consistent.  (Karl Wettin via Grant Ingersoll)
     
 New features
 

Modified: lucene/java/trunk/src/java/org/apache/lucene/index/SegmentReader.java
URL: http://svn.apache.org/viewvc/lucene/java/trunk/src/java/org/apache/lucene/index/SegmentReader.java?rev=603061&r1=603060&r2=603061&view=diff
==============================================================================
--- lucene/java/trunk/src/java/org/apache/lucene/index/SegmentReader.java (original)
+++ lucene/java/trunk/src/java/org/apache/lucene/index/SegmentReader.java Mon Dec 10 13:49:41
2007
@@ -937,12 +937,12 @@
     ensureOpen();
     FieldInfo fi = fieldInfos.fieldInfo(field);
     if (fi == null || !fi.storeTermVector || termVectorsReaderOrig == null)
-      throw new IOException("field does not contain term vectors");
+      return;
 
     TermVectorsReader termVectorsReader = getTermVectorsReader();
     if (termVectorsReader == null)
     {
-      throw new IOException("Cannot open a reader for the term vectors");
+      return;
     }
 
 



Mime
View raw message