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