IndexOptions

Controls how much information is stored in the postings lists.

Entries

Link copied to clipboard

Not indexed

Link copied to clipboard

Only documents are indexed: term frequencies and positions are omitted. Phrase and other positional queries on the field will throw an exception, and scoring will behave as if any term in the document appears only once.

Link copied to clipboard

Only documents and term frequencies are indexed: positions are omitted. This enables normal scoring, except PhraseQuery and other positional queries will throw an exception.

Link copied to clipboard

Indexes documents, frequencies and positions. This is a typical default for full-text search: full scoring is enabled and positional queries are supported.

Link copied to clipboard

Indexes documents, frequencies, positions and offsets. Character offsets are encoded alongside the positions.

Properties

Link copied to clipboard

Returns a representation of an immutable list of all enum entries, in the order they're declared.

Link copied to clipboard
expect val name: String
Link copied to clipboard
expect val ordinal: Int

Functions

Link copied to clipboard

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Link copied to clipboard

Returns an array containing the constants of this enum type, in the order they're declared.