Module org.apache.lucene.suggest
Class CompletionFieldsConsumer.CompletionTermWriter
java.lang.Object
org.apache.lucene.search.suggest.document.CompletionFieldsConsumer.CompletionTermWriter
- Enclosing class:
CompletionFieldsConsumer
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final NRTSuggesterBuilderprivate intprivate booleanprivate longprivate longprivate PostingsEnumprivate final BytesRefBuilderprivate byte -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanfinish(IndexOutput output) Stores the built FST inoutputReturns true if there was anything stored, false otherwisevoidWrites all postings (surface form, weight, document id) forterm
-
Field Details
-
postingsEnum
-
docCount
private int docCount -
maxWeight
private long maxWeight -
minWeight
private long minWeight -
type
private byte type -
first
private boolean first -
scratch
-
builder
-
-
Constructor Details
-
CompletionTermWriter
- Throws:
IOException
-
-
Method Details
-
finish
Stores the built FST inoutputReturns true if there was anything stored, false otherwise- Throws:
IOException
-
write
Writes all postings (surface form, weight, document id) forterm- Throws:
IOException
-