Companion

object Companion

Properties

Link copied to clipboard
Link copied to clipboard
const val MAX_DOCS: Int

Hard limit on maximum number of documents that may be added to the index. If you try to add more than this you'll hit IllegalArgumentException.

Link copied to clipboard
const val MAX_POSITION: Int

Maximum value of the token position in an indexed field.

Link copied to clipboard

Maximum length string for a stored field.

Link copied to clipboard
const val MAX_TERM_LENGTH: Int

Absolute hard maximum length for a term, in bytes once encoded as UTF8. If a term arrives from the analyzer longer than this length, an IllegalArgumentException is thrown and a message is printed to infoStream, if set (see ).

Link copied to clipboard
const val SOURCE: String

Key for the source of a segment in the SegmentInfo.getDiagnostics.

Link copied to clipboard

Source of a segment which results from a call to .addIndexes.

Link copied to clipboard
const val SOURCE_FLUSH: String

Source of a segment which results from a flush.

Link copied to clipboard
const val SOURCE_MERGE: String

Source of a segment which results from a merge of other segments.

Link copied to clipboard

Name of the write lock in the index.

Functions

Link copied to clipboard

NOTE: this method creates a compound file for all files returned by info.files(). While, generally, this may include separate norms and deletion files, this SegmentInfo must not reference such files when this method is called, because they are not allowed within a compound file.

Link copied to clipboard
fun isCongruentSort(indexSort: Sort, otherSort: Sort): Boolean

Returns true if indexSort is a prefix of otherSort.

Link copied to clipboard
Link copied to clipboard
fun setDiagnostics(info: SegmentInfo, source: String)
Link copied to clipboard
fun setMaxDocs(maxDocs: Int)

Used only for testing.