Method GetOrdTermsEnum
GetOrdTermsEnum(AtomicReader)
Returns a TermsEnum that implements Ord. If the
provided reader
supports Ord, we just return its
TermsEnum; if it does not, we build a "private" terms
index internally (WARNING: consumes RAM) and use that
index to implement Ord. This also enables Ord on top
of a composite reader. The returned TermsEnum is
unpositioned. This returns null
if there are no terms.
NOTE: you must pass the same reader that was used when creating this class
Declaration
public virtual TermsEnum GetOrdTermsEnum(AtomicReader reader)
Parameters
Type | Name | Description |
---|---|---|
AtomicReader | reader |
Returns
Type | Description |
---|---|
TermsEnum |