get

abstract fun get(doc: Int): Fields?

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

The returned Fields instance acts like a single-document inverted index (the docID will be 0). If offsets are available they are in an OffsetAttribute available from the [ ].


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

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

The returned Terms instance acts like a single-document inverted index (the docID will be 0). If offsets are available they are in an OffsetAttribute available from the [ ].