public abstract class CompletionPostingsFormat extends PostingsFormat
A PostingsFormat
which supports document suggestion based on
indexed SuggestField
s.
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
CodecHeader
FST<Long, BytesRef>
CodecFooter
Notes:
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.
CodecHeader
Uint32
Uint32
Uint64
Uint64
Uint64
Byte
CodecFooter
Notes:
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) |
FieldsProducer |
fieldsProducer(SegmentReadState state) |
availablePostingsFormats, forName, getName, reloadPostingsFormats, toString
public CompletionPostingsFormat()
protected abstract PostingsFormat delegatePostingsFormat()
public FieldsConsumer fieldsConsumer(SegmentWriteState state) throws IOException
fieldsConsumer
in class PostingsFormat
IOException
public FieldsProducer fieldsProducer(SegmentReadState state) throws IOException
fieldsProducer
in class PostingsFormat
IOException
Copyright © 2000-2019 Apache Software Foundation. All Rights Reserved.