Method GetTermsEnum
GetTermsEnum(Terms, AttributeSource)
Construct the enumeration to be used, expanding the
pattern term. this method should only be called if
the field exists (ie, implementations can assume the
field does exist). this method should not return null
(should instead return EMPTY if no
terms match). The TermsEnum must already be
positioned to the first matching term.
The given AttributeSource is passed by the MultiTermQuery.RewriteMethod to
provide attributes, the rewrite method uses to inform about e.g. maximum competitive boosts.
this is currently only used by TopTermsRewrite<Q>.
Declaration
protected abstract TermsEnum GetTermsEnum(Terms terms, AttributeSource atts)
Parameters
Returns
GetTermsEnum(Terms)
Convenience method, if no attributes are needed:
this simply passes empty attributes and is equal to:
GetTermsEnum(terms, new AttributeSource())
Declaration
public TermsEnum GetTermsEnum(Terms terms)
Parameters
Type |
Name |
Description |
Terms |
terms |
|
Returns