Numeric¶
This field type is used to store numeric values.
message Field {
string name = 1;
FieldType type = 2;
bool search = 3;
bool store = 4;
bool storeDocValues = 5;
bool multiValued = 9;
}
name: Name of the field.
- type: Type of the field. Must be one of:
INT: 32-bit signed integer
LONG: 64-bit signed integer
FLOAT: 32-bit floating point
DOUBLE: 64-bit floating point
search: Whether the field should be indexed for search. Default is false.
store: Whether the field should be stored in the index. Default is false.
storeDocValues: Whether the field should be stored in doc values. Default is false.
multiValued: Whether the field can contain more than one value. Default is false.
Example¶
{
"name": "int_field",
"type": "INT",
"search": true,
"storeDocValues": true
}