elasticsearch无法设置字段类型为geo_point
PUT /test
{
"mappings": {
"properties": {
"location": {
"type": "geo_point"
}
}
}
}
POST /test/1
{
"location": [ -71.34, 41.12 ]
}
PUT /test
{
"mappings": {
"properties": {
"location": {
"type": "geo_point"
}
}
}
}
POST /test/1
{
"location": [ -71.34, 41.12 ]
}