Esempio n. 1
0
 public SimpleTextPostingsWriter(SimpleTextFieldsWriter outerInstance, FieldInfo field)
 {
     _outerInstance  = outerInstance;
     _indexOptions   = field.FieldIndexOptions.Value;
     _writePositions = _indexOptions.CompareTo(IndexOptions.DOCS_AND_FREQS_AND_POSITIONS) >= 0;
     _writeOffsets   = _indexOptions.CompareTo(IndexOptions.DOCS_AND_FREQS_AND_POSITIONS_AND_OFFSETS) >= 0;
 }
Esempio n. 2
0
 public SimpleTextPostingsWriter(SimpleTextFieldsWriter outerInstance, FieldInfo field)
 {
     _outerInstance = outerInstance;
     _indexOptions  = field.IndexOptions;
     // LUCENENET specific - to avoid boxing, changed from CompareTo() to IndexOptionsComparer.Compare()
     _writePositions = IndexOptionsComparer.Default.Compare(_indexOptions, IndexOptions.DOCS_AND_FREQS_AND_POSITIONS) >= 0;
     _writeOffsets   = IndexOptionsComparer.Default.Compare(_indexOptions, IndexOptions.DOCS_AND_FREQS_AND_POSITIONS_AND_OFFSETS) >= 0;
 }
Esempio n. 3
0
 public SimpleTextPostingsWriter(SimpleTextFieldsWriter outerInstance, FieldInfo field)
 {
     this.outerInstance = outerInstance;
     indexOptions       = field.IndexOptions;
     // LUCENENET specific - to avoid boxing, changed from CompareTo() to IndexOptionsComparer.Compare()
     writePositions = IndexOptionsComparer.Default.Compare(indexOptions, IndexOptions.DOCS_AND_FREQS_AND_POSITIONS) >= 0;
     writeOffsets   = IndexOptionsComparer.Default.Compare(indexOptions, IndexOptions.DOCS_AND_FREQS_AND_POSITIONS_AND_OFFSETS) >= 0;
     //System.out.println("writeOffsets=" + writeOffsets);
     //System.out.println("writePos=" + writePositions);
 }
Esempio n. 4
0
 public SimpleTextTermsWriter(SimpleTextFieldsWriter outerInstance, FieldInfo field)
 {
     _postingsWriter = new SimpleTextPostingsWriter(outerInstance, field);
 }
 public SimpleTextTermsWriter(SimpleTextFieldsWriter outerInstance, FieldInfo field)
 {
     _outerInstance = outerInstance;
     _postingsWriter = new SimpleTextPostingsWriter(outerInstance, field);
 }
 public SimpleTextPostingsWriter(SimpleTextFieldsWriter outerInstance, FieldInfo field)
 {
     _outerInstance = outerInstance;
     _indexOptions = field.FieldIndexOptions.Value;
     _writePositions = _indexOptions >= IndexOptions.DOCS_AND_FREQS_AND_POSITIONS;
     _writeOffsets = _indexOptions >= IndexOptions.DOCS_AND_FREQS_AND_POSITIONS_AND_OFFSETS;
 }