build

fun build(owner: IndexReader.CacheKey?, values: Array<SortedDocValues>, acceptableOverheadRatio: Float): OrdinalMap

Create an ordinal map that uses the number of unique values of each SortedDocValues instance as a weight.

See also

.build


fun build(owner: IndexReader.CacheKey?, values: Array<SortedSetDocValues>, acceptableOverheadRatio: Float): OrdinalMap

Create an ordinal map that uses the number of unique values of each SortedSetDocValues instance as a weight.

See also

.build


fun build(owner: IndexReader.CacheKey?, subs: Array<TermsEnum>, weights: LongArray, acceptableOverheadRatio: Float): OrdinalMap

Creates an ordinal map that allows mapping ords to/from a merged space from subs.

Parameters

owner

a cache key

subs

TermsEnums that support TermsEnum.ord. They need not be dense (e.g. can be FilteredTermsEnums}.

weights

a weight for each sub. This is ideally correlated with the number of unique terms that each sub introduces compared to the other subs

Throws

IOException

if an I/O error occurred.