| Modifier and Type | Class and Description |
|---|---|
static class |
CreateArgs.Builder
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<?,?> args)
Build a
CommandArgs object that contains all the arguments. |
static CreateArgs.Builder |
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<String> |
getFilter()
Get the filter for the index.
|
Optional<String> |
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<String> |
getPayloadField()
Get the field that contains the payload setting for the documents in the index.
|
List<String> |
getPrefixes()
Get the prefixes for the index.
|
Optional<String> |
getScoreField()
Get the field that contains the score setting for the documents in the index.
|
Optional<List<String>> |
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 CreateArgs.Builder builder()
CreateArgs.CreateArgs.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<String> getPrefixes()
CreateArgs.Builder.withPrefix(String),
CreateArgs.Builder.withPrefixes(List)public Optional<String> getFilter()
CreateArgs.Builder.filter(String)public Optional<DocumentLanguage> getDefaultLanguage()
CreateArgs.Builder.defaultLanguage(DocumentLanguage)public Optional<String> getLanguageField()
CreateArgs.Builder.languageField(String)public OptionalDouble getDefaultScore()
CreateArgs.Builder.defaultScore(double)public Optional<String> getScoreField()
CreateArgs.Builder.scoreField(String)public Optional<String> getPayloadField()
CreateArgs.Builder.payloadField(String)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<String>> getStopWords()
CreateArgs.Builder.stopWords(List)public void build(CommandArgs<?,?> args)
CommandArgs object that contains all the arguments.args - the CommandArgs objectCopyright © 2026 lettuce.io. All rights reserved.