diff options
author | Viktors Tjarve <viktors.tjarve@zabbix.com> | 2020-03-26 16:35:47 +0300 |
---|---|---|
committer | Viktors Tjarve <viktors.tjarve@zabbix.com> | 2020-03-26 16:35:47 +0300 |
commit | 1f9d8828cb0a0671628d1d6171eafd3aa798872f (patch) | |
tree | 4c21e581f984dcece6c98661835eb688997ff2cd /database | |
parent | 412d48d4bff3c4aeba52db3f50e5c2e83ab21547 (diff) |
........S. [ZBXNEXT-5825] fixed support of Elasticsearch version 7.x
Diffstat (limited to 'database')
-rw-r--r-- | database/elasticsearch/elasticsearch.map | 158 |
1 files changed, 74 insertions, 84 deletions
diff --git a/database/elasticsearch/elasticsearch.map b/database/elasticsearch/elasticsearch.map index 32ea9ea9244..d494468cbaf 100644 --- a/database/elasticsearch/elasticsearch.map +++ b/database/elasticsearch/elasticsearch.map @@ -1,25 +1,23 @@ # uint mapping { - "settings" : { - "index" : { - "number_of_replicas" : 1, - "number_of_shards" : 5 + "settings": { + "index": { + "number_of_replicas": 1, + "number_of_shards": 5 } }, - "mappings" : { - "values" : { - "properties" : { - "itemid" : { - "type" : "long" - }, - "clock" : { - "format" : "epoch_second", - "type" : "date" - }, - "value" : { - "type" : "long" - } + "mappings": { + "properties": { + "itemid": { + "type": "long" + }, + "clock": { + "format": "epoch_second", + "type": "date" + }, + "value": { + "type": "long" } } } @@ -29,25 +27,23 @@ # dbl mapping { - "settings" : { - "index" : { - "number_of_replicas" : 1, - "number_of_shards" : 5 + "settings": { + "index": { + "number_of_replicas": 1, + "number_of_shards": 5 } }, - "mappings" : { - "values" : { - "properties" : { - "itemid" : { - "type" : "long" - }, - "clock" : { - "format" : "epoch_second", - "type" : "date" - }, - "value" : { - "type" : "double" - } + "mappings": { + "properties": { + "itemid": { + "type": "long" + }, + "clock": { + "format": "epoch_second", + "type": "date" + }, + "value": { + "type": "double" } } } @@ -57,33 +53,31 @@ # str mapping { - "settings" : { - "index" : { - "number_of_replicas" : 1, - "number_of_shards" : 5 + "settings": { + "index": { + "number_of_replicas": 1, + "number_of_shards": 5 } }, - "mappings" : { - "values" : { - "properties" : { - "itemid" : { - "type" : "long" + "mappings": { + "properties": { + "itemid": { + "type": "long" + }, + "clock": { + "format": "epoch_second", + "type": "date" + }, + "value": { + "fields": { + "analyzed": { + "index": true, + "type": "text", + "analyzer": "standard" + } }, - "clock" : { - "format" : "epoch_second", - "type" : "date" - }, - "value" : { - "fields" : { - "analyzed" : { - "index" : true, - "type" : "text", - "analyzer" : "standard" - } - }, - "index" : false, - "type" : "text" - } + "index": false, + "type": "text" } } } @@ -100,7 +94,6 @@ } }, "mappings" : { - "values" : { "properties" : { "itemid" : { "type" : "long" @@ -121,7 +114,6 @@ "type" : "text" } } - } } } @@ -129,33 +121,31 @@ # log mapping { - "settings" : { - "index" : { - "number_of_replicas" : 1, - "number_of_shards" : 5 + "settings": { + "index": { + "number_of_replicas": 1, + "number_of_shards": 5 } }, - "mappings" : { - "values" : { - "properties" : { - "itemid" : { - "type" : "long" - }, - "clock" : { - "format" : "epoch_second", - "type" : "date" + "mappings": { + "properties": { + "itemid": { + "type": "long" + }, + "clock": { + "format": "epoch_second", + "type": "date" + }, + "value": { + "fields": { + "analyzed": { + "index": true, + "type": "text", + "analyzer": "standard" + } }, - "value" : { - "fields" : { - "analyzed" : { - "index" : true, - "type" : "text", - "analyzer" : "standard" - } - }, - "index" : false, - "type" : "text" - } + "index": false, + "type": "text" } } } |