LUCENE-1042: Committed.

git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@603061 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Grant Ingersoll 2007-12-10 21:49:41 +00:00
parent 8c18fd87a1
commit c2130982e3
2 changed files with 5 additions and 2 deletions

View File

@ -181,6 +181,9 @@ Bug fixes
24. LUCENE-1071: Fixed SegmentMerger to correctly set payload bit in 24. LUCENE-1071: Fixed SegmentMerger to correctly set payload bit in
the merged segment. (Michael Busch) 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 New features

View File

@ -937,12 +937,12 @@ class SegmentReader extends DirectoryIndexReader {
ensureOpen(); ensureOpen();
FieldInfo fi = fieldInfos.fieldInfo(field); FieldInfo fi = fieldInfos.fieldInfo(field);
if (fi == null || !fi.storeTermVector || termVectorsReaderOrig == null) if (fi == null || !fi.storeTermVector || termVectorsReaderOrig == null)
throw new IOException("field does not contain term vectors"); return;
TermVectorsReader termVectorsReader = getTermVectorsReader(); TermVectorsReader termVectorsReader = getTermVectorsReader();
if (termVectorsReader == null) if (termVectorsReader == null)
{ {
throw new IOException("Cannot open a reader for the term vectors"); return;
} }