T - The concrete field args typeB - The concrete builder typepublic abstract static class FieldArgs.Builder<T extends FieldArgs,B extends FieldArgs.Builder<T,B>> extends Object
| Modifier | Constructor and Description |
|---|---|
protected |
Builder(T instance)
Constructor for subclasses.
|
| Modifier and Type | Method and Description |
|---|---|
B |
as(String as)
Defines the attribute associated to the identifier.
|
T |
build()
Build the field arguments.
|
B |
indexEmpty()
For TEXT and TAG attributes, introduced in v2.10, allows you to index and search for empty strings.
|
B |
indexMissing()
For all field types, introduced in v2.10, allows you to search for missing values, that is, documents that do not
contain a specific field.
|
B |
name(String name)
The field to index: a hash field name when indexing HASH documents, or a JSONPath expression when indexing JSON
documents.
|
B |
noIndex()
Attributes can have the NOINDEX option, which means they will not be indexed.
|
protected B |
self()
Returns this builder instance for method chaining.
|
B |
sortable()
NUMERIC, TAG, TEXT, or GEO attributes can have an optional SORTABLE argument.
|
B |
unNormalizedForm()
By default, for hashes (not with JSON) SORTABLE applies normalization to the indexed value (characters set to
lowercase, removal of diacritics).
|
protected Builder(T instance)
instance - the field args instance to buildprotected B self()
public B name(String name)
name - the hash field name or JSONPath expressionFieldArgs.Builder for the purpose of method chainingpublic B as(String as)
as - the field name to be used in queriesFieldArgs.Builder for the purpose of method chainingpublic B sortable()
FieldArgs.Builder for the purpose of method chainingpublic B unNormalizedForm()
FieldArgs.Builder for the purpose of method chainingpublic B noIndex()
sortable(), to create attributes whose update using PARTIAL will not cause full reindexing of the
document. If an attribute has NOINDEX and doesn't have SORTABLE, it will just be ignored by the index.FieldArgs.Builder for the purpose of method chainingpublic B indexEmpty()
FieldArgs.Builder for the purpose of method chainingpublic B indexMissing()
FieldArgs.Builder for the purpose of method chainingpublic T build()
Copyright © 2026 lettuce.io. All rights reserved.