You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
155 lines
2.7 KiB
155 lines
2.7 KiB
# uint mapping
|
|
|
|
{
|
|
"settings": {
|
|
"index": {
|
|
"number_of_replicas": 1,
|
|
"number_of_shards": 5
|
|
}
|
|
},
|
|
"mappings": {
|
|
"properties": {
|
|
"itemid": {
|
|
"type": "long"
|
|
},
|
|
"clock": {
|
|
"format": "epoch_second",
|
|
"type": "date"
|
|
},
|
|
"value": {
|
|
"type": "long"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
# dbl mapping
|
|
|
|
{
|
|
"settings": {
|
|
"index": {
|
|
"number_of_replicas": 1,
|
|
"number_of_shards": 5
|
|
}
|
|
},
|
|
"mappings": {
|
|
"properties": {
|
|
"itemid": {
|
|
"type": "long"
|
|
},
|
|
"clock": {
|
|
"format": "epoch_second",
|
|
"type": "date"
|
|
},
|
|
"value": {
|
|
"type": "double"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
# str mapping
|
|
|
|
{
|
|
"settings": {
|
|
"index": {
|
|
"number_of_replicas": 1,
|
|
"number_of_shards": 5
|
|
}
|
|
},
|
|
"mappings": {
|
|
"properties": {
|
|
"itemid": {
|
|
"type": "long"
|
|
},
|
|
"clock": {
|
|
"format": "epoch_second",
|
|
"type": "date"
|
|
},
|
|
"value": {
|
|
"fields": {
|
|
"analyzed": {
|
|
"index": true,
|
|
"type": "text",
|
|
"analyzer": "standard"
|
|
}
|
|
},
|
|
"index": false,
|
|
"type": "text"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
# text mapping
|
|
|
|
{
|
|
"settings" : {
|
|
"index" : {
|
|
"number_of_replicas" : 1,
|
|
"number_of_shards" : 5
|
|
}
|
|
},
|
|
"mappings" : {
|
|
"properties" : {
|
|
"itemid" : {
|
|
"type" : "long"
|
|
},
|
|
"clock" : {
|
|
"format" : "epoch_second",
|
|
"type" : "date"
|
|
},
|
|
"value" : {
|
|
"fields" : {
|
|
"analyzed" : {
|
|
"index" : true,
|
|
"type" : "text",
|
|
"analyzer" : "standard"
|
|
}
|
|
},
|
|
"index" : false,
|
|
"type" : "text"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
# log mapping
|
|
|
|
{
|
|
"settings": {
|
|
"index": {
|
|
"number_of_replicas": 1,
|
|
"number_of_shards": 5
|
|
}
|
|
},
|
|
"mappings": {
|
|
"properties": {
|
|
"itemid": {
|
|
"type": "long"
|
|
},
|
|
"clock": {
|
|
"format": "epoch_second",
|
|
"type": "date"
|
|
},
|
|
"value": {
|
|
"fields": {
|
|
"analyzed": {
|
|
"index": true,
|
|
"type": "text",
|
|
"analyzer": "standard"
|
|
}
|
|
},
|
|
"index": false,
|
|
"type": "text"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|