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 NRTSuggesterBuilder
builder
private int
docCount
private boolean
first
private long
maxWeight
private long
minWeight
private PostingsEnum
postingsEnum
private BytesRefBuilder
scratch
private byte
type
-
Constructor Summary
Constructors Constructor Description CompletionTermWriter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
finish(IndexOutput output)
Stores the built FST inoutput
Returns true if there was anything stored, false otherwisevoid
write(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 inoutput
Returns true if there was anything stored, false otherwise- Throws:
java.io.IOException
-
-