Interface TermFrequencyAttribute
- All Superinterfaces:
Attribute
- All Known Implementing Classes:
PackedTokenAttributeImpl
,TermFrequencyAttributeImpl
Sets the custom term frequency of a term within one document. If this attribute is present in
your analysis chain for a given field, that field must be indexed with
IndexOptions.DOCS_AND_FREQS
.-
Method Summary
Modifier and TypeMethodDescriptionint
Returns the custom term frequency.void
setTermFrequency
(int termFrequency) Set the custom term frequency of the current term within one document.
-
Method Details
-
setTermFrequency
void setTermFrequency(int termFrequency) Set the custom term frequency of the current term within one document. -
getTermFrequency
int getTermFrequency()Returns the custom term frequency.
-