public abstract class CompletionPostingsFormat extends PostingsFormat
A PostingsFormat which supports document suggestion based on
indexed SuggestFields.
Document suggestion is based on an weighted FST which map analyzed
terms of a SuggestField to its surface form and document id.
Files:
The .lkp file contains an FST for each suggest field
CodecHeaderFST<Long, BytesRef>CodecFooterNotes:
CodecHeader storing the version information
for the Completion implementation.The .cmp file contains an index into the completion dictionary, so that it can be accessed randomly.
CodecHeaderUint32Uint32Uint64Uint64Uint64ByteCodecFooterNotes:
CodecHeader storing the version information
for the Completion implementation.FieldInfos. (.fnm)EMPTY| Constructor and Description |
|---|
CompletionPostingsFormat()
Used only by core Lucene at read-time via Service Provider instantiation
|
| Modifier and Type | Method and Description |
|---|---|
protected abstract PostingsFormat |
delegatePostingsFormat()
Concrete implementation should specify the delegating postings format
|
FieldsConsumer |
fieldsConsumer(SegmentWriteState state)
Writes a new segment
|
FieldsProducer |
fieldsProducer(SegmentReadState state)
Reads a segment.
|
availablePostingsFormats, forName, getName, reloadPostingsFormats, toStringpublic CompletionPostingsFormat()
protected abstract PostingsFormat delegatePostingsFormat()
public FieldsConsumer fieldsConsumer(SegmentWriteState state) throws java.io.IOException
PostingsFormatfieldsConsumer in class PostingsFormatjava.io.IOExceptionpublic FieldsProducer fieldsProducer(SegmentReadState state) throws java.io.IOException
PostingsFormatfieldsProducer in class PostingsFormatjava.io.IOExceptionCopyright © 2000–2025 The Apache Software Foundation. All rights reserved.