mirror of
https://github.com/josejuanmartinez/libreCatastro.git
synced 2024-06-02 23:05:35 +02:00
Adds nested properties (constructions) for correct elastic search visualization
This commit is contained in:
parent
e6a23c3b59
commit
4ce6442836
|
@ -26,6 +26,25 @@ class ElasticSearchUtils:
|
||||||
"properties": {
|
"properties": {
|
||||||
"location": {
|
"location": {
|
||||||
"type": "geo_point"
|
"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": [
|
"dynamic_templates": [
|
||||||
|
|
Loading…
Reference in New Issue
Block a user