postings

Get PostingsEnum for the current term. Do not call this when the enum is unpositioned. This method will not return null.

NOTE: the returned iterator may return deleted documents, so deleted documents have to be checked on top of the PostingsEnum.

Use this method if you only require documents and frequencies, and do not need any proximity data. This method is equivalent to .postings

Parameters

reuse

pass a prior PostingsEnum for possible reuse

See also

.postings


abstract fun postings(reuse: PostingsEnum?, flags: Int): PostingsEnum?

Get PostingsEnum for the current term, with control over whether freqs, positions, offsets or payloads are required. Do not call this when the enum is unpositioned. This method will not return null.

NOTE: the returned iterator may return deleted documents, so deleted documents have to be checked on top of the PostingsEnum.

Parameters

reuse

pass a prior PostingsEnum for possible reuse

flags

specifies which optional per-document values you require; see