TermVectorsReader

Codec API for reading term vectors:

Inheritors

Properties

Link copied to clipboard

Functions

Link copied to clipboard
abstract fun checkIntegrity()

Checks consistency of this reader.

Link copied to clipboard
abstract override fun clone(): TermVectorsReader

Create a clone that one caller at a time may use to read term vectors.

Link copied to clipboard
expect abstract fun close()
Link copied to clipboard
abstract fun get(doc: Int): Fields?

Returns term vectors for this document, or null if term vectors were not indexed.

fun get(doc: Int, field: String?): Terms?

Retrieve term vector for this document and field, or null if term vectors were not indexed.

Link copied to clipboard
open fun prefetch(docID: Int)

Optional method: Give a hint to this TermVectors instance that the given document will be read in the near future. This typically delegates to IndexInput.prefetch and is useful to parallelize I/O across multiple documents.