1# uint mapping 2 3{ 4 "settings": { 5 "index": { 6 "number_of_replicas": 1, 7 "number_of_shards": 5 8 } 9 }, 10 "mappings": { 11 "properties": { 12 "itemid": { 13 "type": "long" 14 }, 15 "clock": { 16 "format": "epoch_second", 17 "type": "date" 18 }, 19 "value": { 20 "type": "long" 21 } 22 } 23 } 24} 25 26 27# dbl mapping 28 29{ 30 "settings": { 31 "index": { 32 "number_of_replicas": 1, 33 "number_of_shards": 5 34 } 35 }, 36 "mappings": { 37 "properties": { 38 "itemid": { 39 "type": "long" 40 }, 41 "clock": { 42 "format": "epoch_second", 43 "type": "date" 44 }, 45 "value": { 46 "type": "double" 47 } 48 } 49 } 50} 51 52 53# str mapping 54 55{ 56 "settings": { 57 "index": { 58 "number_of_replicas": 1, 59 "number_of_shards": 5 60 } 61 }, 62 "mappings": { 63 "properties": { 64 "itemid": { 65 "type": "long" 66 }, 67 "clock": { 68 "format": "epoch_second", 69 "type": "date" 70 }, 71 "value": { 72 "fields": { 73 "analyzed": { 74 "index": true, 75 "type": "text", 76 "analyzer": "standard" 77 } 78 }, 79 "index": false, 80 "type": "text" 81 } 82 } 83 } 84} 85 86 87# text mapping 88 89{ 90 "settings" : { 91 "index" : { 92 "number_of_replicas" : 1, 93 "number_of_shards" : 5 94 } 95 }, 96 "mappings" : { 97 "properties" : { 98 "itemid" : { 99 "type" : "long" 100 }, 101 "clock" : { 102 "format" : "epoch_second", 103 "type" : "date" 104 }, 105 "value" : { 106 "fields" : { 107 "analyzed" : { 108 "index" : true, 109 "type" : "text", 110 "analyzer" : "standard" 111 } 112 }, 113 "index" : false, 114 "type" : "text" 115 } 116 } 117 } 118} 119 120 121# log mapping 122 123{ 124 "settings": { 125 "index": { 126 "number_of_replicas": 1, 127 "number_of_shards": 5 128 } 129 }, 130 "mappings": { 131 "properties": { 132 "itemid": { 133 "type": "long" 134 }, 135 "clock": { 136 "format": "epoch_second", 137 "type": "date" 138 }, 139 "value": { 140 "fields": { 141 "analyzed": { 142 "index": true, 143 "type": "text", 144 "analyzer": "standard" 145 } 146 }, 147 "index": false, 148 "type": "text" 149 } 150 } 151 } 152} 153 154 155