The SegmentInfos type exposes the following members.
Fields
Name | Description | |
---|---|---|
![]() | counter | |
![]() ![]() | FORMAT | The file format version, a negative number. |
![]() ![]() | FORMAT_CHECKSUM | This format adds a checksum at the end of the file to
ensure all bytes were successfully written.
|
![]() ![]() | FORMAT_DEL_COUNT | This format adds the deletion count for each segment.
This way IndexWriter can efficiently report numDocs().
|
![]() ![]() | FORMAT_DIAGNOSTICS | This format adds optional per-segment String
dianostics storage, and switches userData to Map
|
![]() ![]() | FORMAT_HAS_PROX | This format adds the boolean hasProx to record if any
fields in the segment store prox information (ie, have
omitTermFreqAndPositions==false)
|
![]() ![]() | FORMAT_LOCKLESS | This format adds details used for lockless commits. It differs
slightly from the previous format in that file names
are never re-used (write once). Instead, each file is
written to the next generation. For example,
segments_1, segments_2, etc. This allows us to not use
a commit lock. See file
formats for details.
|
![]() ![]() | FORMAT_SHARED_DOC_STORE | This format allows multiple segments to share a single
vectors and stored fields file.
|
![]() ![]() | FORMAT_SINGLE_NORM_FILE | This format adds a "hasSingleNormFile" flag into each segment info.
See LUCENE-756
for details.
|
![]() ![]() | FORMAT_USER_DATA | This format adds optional commit userData (String) storage. |