public class NumericFieldArgs extends FieldArgs
Numeric fields are used to store non-textual, countable values. They can hold integer or floating-point values. Numeric fields are sortable, meaning you can perform range-based queries and retrieve documents based on specific numeric conditions. For example, you can search for documents with a price between a certain range or retrieve documents with a specific rating value.
| Modifier and Type | Class and Description |
|---|---|
static class |
NumericFieldArgs.Builder
Builder for
NumericFieldArgs. |
as, indexEmpty, indexMissing, name, noIndex, sortable, unNormalizedForm| Constructor and Description |
|---|
NumericFieldArgs() |
| Modifier and Type | Method and Description |
|---|---|
static NumericFieldArgs.Builder |
builder()
Create a new
NumericFieldArgs using the builder pattern. |
protected void |
buildTypeSpecificArgs(CommandArgs<?,?> args)
Add type-specific arguments to the command.
|
String |
getFieldType()
Returns the field type.
|
build, getAs, getName, isIndexEmpty, isIndexMissing, isNoIndex, isSortable, isUnNormalizedFormpublic static NumericFieldArgs.Builder builder()
NumericFieldArgs using the builder pattern.NumericFieldArgs.Builderpublic String getFieldType()
FieldArgsgetFieldType in class FieldArgsprotected void buildTypeSpecificArgs(CommandArgs<?,?> args)
FieldArgsbuildTypeSpecificArgs in class FieldArgsargs - the command arguments to modifyCopyright © 2026 lettuce.io. All rights reserved.