K - Key typepublic class TagFieldArgs<K> extends FieldArgs<K>
Tag fields are used to store textual data that represents a collection of data tags or labels. Tag fields are characterized by their low cardinality, meaning they typically have a limited number of distinct values. Unlike text fields, tag fields are stored as-is without tokenization or stemming. They are useful for organizing and categorizing data, making it easier to filter and retrieve documents based on specific tags.
| Modifier and Type | Class and Description |
|---|---|
static class |
TagFieldArgs.Builder<K>
Builder for
TagFieldArgs. |
as, indexEmpty, indexMissing, name, noIndex, sortable, unNormalizedForm| Constructor and Description |
|---|
TagFieldArgs() |
| Modifier and Type | Method and Description |
|---|---|
static <K> TagFieldArgs.Builder<K> |
builder()
Create a new
TagFieldArgs using the builder pattern. |
protected void |
buildTypeSpecificArgs(CommandArgs<K,?> args)
Add type-specific arguments to the command.
|
String |
getFieldType()
Returns the field type.
|
Optional<String> |
getSeparator()
Get the separator for tag fields.
|
boolean |
isCaseSensitive()
Check if the field is case sensitive.
|
boolean |
isWithSuffixTrie()
Check if suffix trie is enabled.
|
build, getAs, getName, isIndexEmpty, isIndexMissing, isNoIndex, isSortable, isUnNormalizedFormpublic static <K> TagFieldArgs.Builder<K> builder()
TagFieldArgs using the builder pattern.K - Key typeTagFieldArgs.Builderpublic String getFieldType()
FieldArgsgetFieldType in class FieldArgs<K>public Optional<String> getSeparator()
public boolean isCaseSensitive()
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.