Location¶
The field for storing a geographic location.
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 set to LAT_LON.
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": "location_field",
"type": "LAT_LON",
"search": true,
"storeDocValues": true
}