K - Key typepublic class TextFieldArgs<K> extends FieldArgs<K>
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<K>
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 <K> TextFieldArgs.Builder<K> |
builder()
Create a new
TextFieldArgs using the builder pattern. |
protected void |
buildTypeSpecificArgs(CommandArgs<K,?> 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 <K> TextFieldArgs.Builder<K> builder()
TextFieldArgs using the builder pattern.K - Key typeTextFieldArgs.Builderpublic String getFieldType()
FieldArgsgetFieldType in class FieldArgs<K>public boolean isNoStem()
public Optional<TextFieldArgs.PhoneticMatcher> getPhonetic()
public boolean isWithSuffixTrie()
protected void buildTypeSpecificArgs(CommandArgs<K,?> args)
FieldArgsbuildTypeSpecificArgs in class FieldArgs<K>args - the command arguments to modifyCopyright © 2025 lettuce.io. All rights reserved.