Class VariableGapTermsIndexWriter.IndexTermSelector
java.lang.Object
org.apache.lucene.codecs.blockterms.VariableGapTermsIndexWriter.IndexTermSelector
- Direct Known Subclasses:
VariableGapTermsIndexWriter.EveryNOrDocFreqTermSelector
,VariableGapTermsIndexWriter.EveryNTermSelector
- Enclosing class:
- VariableGapTermsIndexWriter
Hook for selecting which terms should be placed in the terms index.
newField(org.apache.lucene.index.FieldInfo)
is called at the start of each new field, and isIndexTerm(org.apache.lucene.util.BytesRef, org.apache.lucene.codecs.TermStats)
for
each term in that field.
- WARNING: This API is experimental and might change in incompatible ways in the next release.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionabstract boolean
isIndexTerm
(BytesRef term, TermStats stats) Called sequentially on every term being written, returning true if this term should be indexedabstract void
Called when a new field is started.
-
Constructor Details
-
IndexTermSelector
public IndexTermSelector()
-
-
Method Details
-
isIndexTerm
Called sequentially on every term being written, returning true if this term should be indexed -
newField
Called when a new field is started.
-