PUT 호스트명/인덱스명
{
"mappings": {
"_doc": {
"properties": {
"boundaries": {
"type": "geo_shape",
"ignore_malformed": true,
"precision": "1.0m",
"strategy": "recursive",
"distance_error_pct": 0.009
},
"boundaries_nearby": {
"type": "geo_shape",
"ignore_malformed": true,
"precision": "1.0m",
"strategy": "recursive",
"distance_error_pct": 0.009
},
"boundaries_nearby_auto": {
"type": "geo_shape",
"ignore_malformed": true,
"precision": "1.0m",
"strategy": "recursive",
"distance_error_pct": 0.009
},
"location": {
"type": "geo_point"
},
"point": {
"type": "geo_shape",
"ignore_malformed": true,
"precision": "1.0m",
"strategy": "recursive",
"distance_error_pct": 0.009
}
}
}
}
}
'내가 당면한 문제와 해결방안' 카테고리의 다른 글
create index with mapping (0) | 2020.06.12 |
---|---|
create geo_shape using latitude and longitude (0) | 2020.06.11 |
postgresql trigger retrieve (0) | 2020.05.28 |
postgresql get column_name with data_type (0) | 2020.05.19 |
logstash postgres to elasticsearch (0) | 2020.05.15 |