Adds nested properties (constructions) for correct elastic search visualization

This commit is contained in:
J 2019-09-22 00:53:42 +02:00
parent e6a23c3b59
commit 4ce6442836
1 changed files with 19 additions and 0 deletions

View File

@ -26,6 +26,25 @@ class ElasticSearchUtils:
"properties": {
"location": {
"type": "geo_point"
},
"constructions": {
"type": "nested",
"properties":
{
"door": "keyword",
"doorway": "keyword",
"floor": "keyword",
"reform": {
"type": "nested",
"properties":
{
"type": "keyword",
"year": "keyword"
}
},
"surface": "keyword",
"use": "keyword"
}
}
},
"dynamic_templates": [