public class TextFieldArgs extends FieldArgs
Text fields are specifically designed for storing human language text. When indexing text fields, Redis performs several transformations to optimize search capabilities. The text is transformed to lowercase, allowing case-insensitive searches. The data is tokenized, meaning it is split into individual words or tokens, which enables efficient full-text search functionality.
| Modifier and Type | Class and Description |
|---|---|
static class |
TextFieldArgs.Builder
Builder for
TextFieldArgs. |
static class |
TextFieldArgs.PhoneticMatcher
Phonetic matchers for text fields.
|
as, indexEmpty, indexMissing, name, noIndex, sortable, unNormalizedForm| Constructor and Description |
|---|
TextFieldArgs() |
| Modifier and Type | Method and Description |
|---|---|
static TextFieldArgs.Builder |
builder()
Create a new
TextFieldArgs using the builder pattern. |
protected void |
buildTypeSpecificArgs(CommandArgs<?,?> args)
Add type-specific arguments to the command.
|
String |
getFieldType()
Returns the field type.
|
Optional<TextFieldArgs.PhoneticMatcher> |
getPhonetic()
Get the phonetic matcher.
|
Optional<Long> |
getWeight()
Get the weight of the field.
|
boolean |
isNoStem()
Check if stemming is disabled.
|
boolean |
isWithSuffixTrie()
Check if suffix trie is enabled.
|
build, getAs, getName, isIndexEmpty, isIndexMissing, isNoIndex, isSortable, isUnNormalizedFormpublic static TextFieldArgs.Builder builder()
TextFieldArgs using the builder pattern.TextFieldArgs.Builderpublic String getFieldType()
FieldArgsgetFieldType in class FieldArgspublic boolean isNoStem()
public Optional<TextFieldArgs.PhoneticMatcher> getPhonetic()
public boolean isWithSuffixTrie()
protected void buildTypeSpecificArgs(CommandArgs<?,?> args)
FieldArgsbuildTypeSpecificArgs in class FieldArgsargs - the command arguments to modifyCopyright © 2026 lettuce.io. All rights reserved.