public class AnalyzingCompletionLookupProvider extends Completion090PostingsFormat.CompletionLookupProvider
Modifier and Type | Class and Description |
---|---|
static class |
PayloadProcessor.SuggestPayload |
Modifier and Type | Field and Description |
---|---|
static String |
CODEC_NAME |
static int |
CODEC_VERSION_CHECKSUMS |
static int |
CODEC_VERSION_LATEST |
static int |
CODEC_VERSION_SERIALIZED_LABELS |
static int |
CODEC_VERSION_START |
static int |
SERIALIZE_HAS_PAYLOADS |
static int |
SERIALIZE_PRESERVE_POSITION_INCREMENTS |
static int |
SERIALIZE_PRESERVE_SEPARATORS |
UNIT_SEPARATOR
Constructor and Description |
---|
AnalyzingCompletionLookupProvider(boolean preserveSep,
boolean exactFirst,
boolean preservePositionIncrements,
boolean hasPayloads) |
Modifier and Type | Method and Description |
---|---|
org.apache.lucene.codecs.FieldsConsumer |
consumer(org.apache.lucene.store.IndexOutput output) |
String |
getName() |
boolean |
getPreservePositionsIncrements() |
boolean |
getPreserveSep() |
boolean |
hasPayloads() |
Completion090PostingsFormat.LookupFactory |
load(org.apache.lucene.store.IndexInput input) |
Set<org.apache.lucene.util.IntsRef> |
toFiniteStrings(org.apache.lucene.analysis.TokenStream stream) |
buildPayload, parsePayload
public static final int SERIALIZE_PRESERVE_SEPARATORS
public static final int SERIALIZE_HAS_PAYLOADS
public static final int SERIALIZE_PRESERVE_POSITION_INCREMENTS
public static final String CODEC_NAME
public static final int CODEC_VERSION_START
public static final int CODEC_VERSION_SERIALIZED_LABELS
public static final int CODEC_VERSION_CHECKSUMS
public static final int CODEC_VERSION_LATEST
public AnalyzingCompletionLookupProvider(boolean preserveSep, boolean exactFirst, boolean preservePositionIncrements, boolean hasPayloads)
public String getName()
getName
in class Completion090PostingsFormat.CompletionLookupProvider
public boolean getPreserveSep()
public boolean getPreservePositionsIncrements()
public boolean hasPayloads()
public org.apache.lucene.codecs.FieldsConsumer consumer(org.apache.lucene.store.IndexOutput output) throws IOException
consumer
in class Completion090PostingsFormat.CompletionLookupProvider
IOException
public Completion090PostingsFormat.LookupFactory load(org.apache.lucene.store.IndexInput input) throws IOException
load
in class Completion090PostingsFormat.CompletionLookupProvider
IOException
public Set<org.apache.lucene.util.IntsRef> toFiniteStrings(org.apache.lucene.analysis.TokenStream stream) throws IOException
IOException
Copyright © 2009–2017. All rights reserved.