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 NRTSuggesterBuilder
private int
private boolean
private long
private long
private PostingsEnum
private final BytesRefBuilder
private byte
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
finish
(IndexOutput output) Stores the built FST inoutput
Returns true if there was anything stored, false otherwisevoid
Writes 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 inoutput
Returns true if there was anything stored, false otherwise- Throws:
IOException
-
write
Writes all postings (surface form, weight, document id) forterm
- Throws:
IOException
-