Class CompletionFieldsConsumer.CompletionTermWriter
- java.lang.Object
-
- org.apache.lucene.search.suggest.document.CompletionFieldsConsumer.CompletionTermWriter
-
- Enclosing class:
- CompletionFieldsConsumer
private static class CompletionFieldsConsumer.CompletionTermWriter extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description private NRTSuggesterBuilderbuilderprivate intdocCountprivate booleanfirstprivate longmaxWeightprivate longminWeightprivate PostingsEnumpostingsEnumprivate BytesRefBuilderscratchprivate bytetype
-
Constructor Summary
Constructors Constructor Description CompletionTermWriter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanfinish(IndexOutput output)Stores the built FST inoutputReturns true if there was anything stored, false otherwisevoidwrite(BytesRef term, TermsEnum termsEnum)Writes all postings (surface form, weight, document id) forterm
-
-
-
Field Detail
-
postingsEnum
private PostingsEnum postingsEnum
-
docCount
private int docCount
-
maxWeight
private long maxWeight
-
minWeight
private long minWeight
-
type
private byte type
-
first
private boolean first
-
scratch
private final BytesRefBuilder scratch
-
builder
private final NRTSuggesterBuilder builder
-
-
Method Detail
-
finish
public boolean finish(IndexOutput output) throws java.io.IOException
Stores the built FST inoutputReturns true if there was anything stored, false otherwise- Throws:
java.io.IOException
-
-