lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bmes...@apache.org
Subject cvs commit: jakarta-lucene/src/java/org/apache/lucene/index SegmentMerger.java
Date Wed, 29 Dec 2004 21:37:47 GMT
bmesser     2004/12/29 13:37:47

  Modified:    src/java/org/apache/lucene/index SegmentMerger.java
  Log:
  use the new IndexReader.getFieldNames instead of the deprecated ones.
  
  Revision  Changes    Path
  1.17      +6 -6      jakarta-lucene/src/java/org/apache/lucene/index/SegmentMerger.java
  
  Index: SegmentMerger.java
  ===================================================================
  RCS file: /home/cvs/jakarta-lucene/src/java/org/apache/lucene/index/SegmentMerger.java,v
  retrieving revision 1.16
  retrieving revision 1.17
  diff -u -r1.16 -r1.17
  --- SegmentMerger.java	5 Oct 2004 17:30:47 -0000	1.16
  +++ SegmentMerger.java	29 Dec 2004 21:37:47 -0000	1.17
  @@ -158,12 +158,12 @@
       int docCount = 0;
       for (int i = 0; i < readers.size(); i++) {
         IndexReader reader = (IndexReader) readers.elementAt(i);
  -      fieldInfos.addIndexed(reader.getIndexedFieldNames(Field.TermVector.WITH_POSITIONS_OFFSETS),
true, true, true);
  -      fieldInfos.addIndexed(reader.getIndexedFieldNames(Field.TermVector.WITH_POSITIONS),
true, true, false);
  -      fieldInfos.addIndexed(reader.getIndexedFieldNames(Field.TermVector.WITH_OFFSETS),
true, false, true);
  -      fieldInfos.addIndexed(reader.getIndexedFieldNames(Field.TermVector.YES), true, false,
false);
  -      fieldInfos.addIndexed(reader.getIndexedFieldNames(Field.TermVector.NO), false, false,
false);
  -      fieldInfos.add(reader.getFieldNames(false), false);
  +      fieldInfos.addIndexed(reader.getFieldNames(IndexReader.FieldOption.TERMVECTOR_WITH_POSITION_OFFSET),
true, true, true);
  +      fieldInfos.addIndexed(reader.getFieldNames(IndexReader.FieldOption.TERMVECTOR_WITH_POSITION),
true, true, false);
  +      fieldInfos.addIndexed(reader.getFieldNames(IndexReader.FieldOption.TERMVECTOR_WITH_OFFSET),
true, false, true);
  +      fieldInfos.addIndexed(reader.getFieldNames(IndexReader.FieldOption.TERMVECTOR), true,
false, false);
  +      fieldInfos.addIndexed(reader.getFieldNames(IndexReader.FieldOption.INDEXED), false,
false, false);
  +      fieldInfos.add(reader.getFieldNames(IndexReader.FieldOption.UNINDEXED), false);
       }
       fieldInfos.write(directory, segment + ".fnm");
   
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: lucene-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: lucene-dev-help@jakarta.apache.org


Mime
View raw message