Interface TermFrequencyAttribute
-
- All Superinterfaces:
Attribute
- All Known Implementing Classes:
PackedTokenAttributeImpl
,TermFrequencyAttributeImpl
public interface TermFrequencyAttribute extends Attribute
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 withIndexOptions.DOCS_AND_FREQS
.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description int
getTermFrequency()
Returns the custom term frequency.void
setTermFrequency(int termFrequency)
Set the custom term frequency of the current term within one document.
-