| Modifier and Type | Class and Description |
|---|---|
static class |
CreateArgs.Builder<K,V>
Builder for
CreateArgs. |
static class |
CreateArgs.TargetType
Possible target types for the index.
|
| Constructor and Description |
|---|
CreateArgs() |
| Modifier and Type | Method and Description |
|---|---|
void |
build(CommandArgs<K,V> args)
Build a
CommandArgs object that contains all the arguments. |
static <K,V> CreateArgs.Builder<K,V> |
builder()
Used to build a new instance of the
CreateArgs. |
Optional<DocumentLanguage> |
getDefaultLanguage()
Get the default language for the documents in the index.
|
OptionalDouble |
getDefaultScore()
Get the default score for the documents in the index.
|
Optional<V> |
getFilter()
Get the filter for the index.
|
Optional<K> |
getLanguageField()
Get the field that contains the language setting for the documents in the index.
|
Optional<CreateArgs.TargetType> |
getOn()
Get the target type for the index.
|
Optional<K> |
getPayloadField()
Get the field that contains the payload setting for the documents in the index.
|
List<K> |
getPrefixes()
Get the prefixes for the index.
|
Optional<K> |
getScoreField()
Get the field that contains the score setting for the documents in the index.
|
Optional<List<V>> |
getStopWords()
Get the stop words for the index.
|
OptionalLong |
getTemporary()
Get the temporary index expiration time in seconds.
|
boolean |
isMaxTextFields()
Get the maximum number of text fields in the index.
|
boolean |
isNoFields()
Get the no fields flag.
|
boolean |
isNoFrequency()
Get the no frequency flag.
|
boolean |
isNoHighlight()
Get the no highlighting flag.
|
boolean |
isNoOffsets()
Get the no offsets flag.
|
boolean |
isSkipInitialScan()
Get the skip initial scan flag.
|
public static <K,V> CreateArgs.Builder<K,V> builder()
CreateArgs.K - the key typeV - the value typeCreateArgs.Builder that provides the option to build up a new instance of the CreateArgspublic Optional<CreateArgs.TargetType> getOn()
CreateArgs.TargetType,
Builder#on(TargetType)public List<K> getPrefixes()
CreateArgs.Builder.withPrefix(Object),
CreateArgs.Builder.withPrefixes(List)public Optional<V> getFilter()
CreateArgs.Builder.filter(Object)public Optional<DocumentLanguage> getDefaultLanguage()
CreateArgs.Builder.defaultLanguage(DocumentLanguage)public Optional<K> getLanguageField()
CreateArgs.Builder.languageField(Object)public OptionalDouble getDefaultScore()
CreateArgs.Builder.defaultScore(double)public Optional<K> getScoreField()
CreateArgs.Builder.scoreField(Object)public Optional<K> getPayloadField()
CreateArgs.Builder.payloadField(Object)public boolean isMaxTextFields()
CreateArgs.Builder.maxTextFields()public OptionalLong getTemporary()
CreateArgs.Builder.temporary(long)public boolean isNoOffsets()
CreateArgs.Builder.noOffsets()public boolean isNoHighlight()
CreateArgs.Builder.noHighlighting()public boolean isNoFields()
CreateArgs.Builder.noFields()public boolean isNoFrequency()
CreateArgs.Builder.noFrequency()public boolean isSkipInitialScan()
CreateArgs.Builder.skipInitialScan()public Optional<List<V>> getStopWords()
CreateArgs.Builder.stopWords(List)public void build(CommandArgs<K,V> args)
CommandArgs object that contains all the arguments.args - the CommandArgs objectCopyright © 2025 lettuce.io. All rights reserved.