|
5 | 5 | },
|
6 | 6 | "mappings" : {
|
7 | 7 | "_default_" : {
|
8 |
| - "_all" : {"enabled" : true, "omit_norms" : true}, |
9 | 8 | "dynamic_templates" : [ {
|
10 | 9 | "message_field" : {
|
11 | 10 | "match" : "message",
|
12 |
| - "match_mapping_type" : "string", |
| 11 | + "match_mapping_type" : "text", |
13 | 12 | "mapping" : {
|
14 |
| - "type" : "string", "index" : "analyzed", "omit_norms" : true, |
15 |
| - "fielddata" : { "format" : "disabled" } |
| 13 | + "type" : "text", |
| 14 | + "norms" : false } |
16 | 15 | }
|
17 |
| - } |
18 |
| - }, { |
19 |
| - "string_fields" : { |
| 16 | + }, { |
| 17 | + "text_fields" : { |
20 | 18 | "match" : "*",
|
21 |
| - "match_mapping_type" : "string", |
| 19 | + "match_mapping_type" : "text", |
22 | 20 | "mapping" : {
|
23 |
| - "type" : "string", "index" : "analyzed", "omit_norms" : true, |
24 |
| - "fielddata" : { "format" : "disabled" }, |
| 21 | + "type" : "text", |
| 22 | + "norms" : false, |
25 | 23 | "fields" : {
|
26 |
| - "raw" : {"type": "string", "index" : "not_analyzed", "doc_values" : true, "ignore_above" : 256} |
| 24 | + "raw" : { "type": "keyword", "ignore_above" : 256} |
27 | 25 | }
|
28 | 26 | }
|
29 | 27 | }
|
30 |
| - }, { |
31 |
| - "float_fields" : { |
32 |
| - "match" : "*", |
33 |
| - "match_mapping_type" : "float", |
34 |
| - "mapping" : { "type" : "float", "doc_values" : true } |
35 |
| - } |
36 |
| - }, { |
37 |
| - "double_fields" : { |
38 |
| - "match" : "*", |
39 |
| - "match_mapping_type" : "double", |
40 |
| - "mapping" : { "type" : "double", "doc_values" : true } |
41 |
| - } |
42 |
| - }, { |
43 |
| - "byte_fields" : { |
44 |
| - "match" : "*", |
45 |
| - "match_mapping_type" : "byte", |
46 |
| - "mapping" : { "type" : "byte", "doc_values" : true } |
47 |
| - } |
48 |
| - }, { |
49 |
| - "short_fields" : { |
50 |
| - "match" : "*", |
51 |
| - "match_mapping_type" : "short", |
52 |
| - "mapping" : { "type" : "short", "doc_values" : true } |
53 |
| - } |
54 |
| - }, { |
55 |
| - "integer_fields" : { |
56 |
| - "match" : "*", |
57 |
| - "match_mapping_type" : "integer", |
58 |
| - "mapping" : { "type" : "integer", "doc_values" : true } |
59 |
| - } |
60 |
| - }, { |
61 |
| - "long_fields" : { |
62 |
| - "match" : "*", |
63 |
| - "match_mapping_type" : "long", |
64 |
| - "mapping" : { "type" : "long", "doc_values" : true } |
65 |
| - } |
66 |
| - }, { |
67 |
| - "date_fields" : { |
68 |
| - "match" : "*", |
69 |
| - "match_mapping_type" : "date", |
70 |
| - "mapping" : { "type" : "date", "doc_values" : true } |
71 |
| - } |
72 |
| - }, { |
73 |
| - "geo_point_fields" : { |
74 |
| - "match" : "*", |
75 |
| - "match_mapping_type" : "geo_point", |
76 |
| - "mapping" : { "type" : "geo_point", "doc_values" : true } |
77 |
| - } |
78 | 28 | } ],
|
79 | 29 | "properties" : {
|
80 |
| - "@timestamp": { "type": "date", "doc_values" : true }, |
81 |
| - "@version": { "type": "string", "index": "not_analyzed", "doc_values" : true }, |
| 30 | + "@timestamp": { "type": "date" }, |
| 31 | + "@version": { "type": "keyword" }, |
82 | 32 | "geoip" : {
|
83 | 33 | "type" : "object",
|
84 | 34 | "dynamic": true,
|
85 | 35 | "properties" : {
|
86 |
| - "ip": { "type": "ip", "doc_values" : true }, |
87 |
| - "location" : { "type" : "geo_point", "doc_values" : true }, |
88 |
| - "latitude" : { "type" : "float", "doc_values" : true }, |
89 |
| - "longitude" : { "type" : "float", "doc_values" : true } |
| 36 | + "ip": { "type": "ip" }, |
| 37 | + "location" : { "type" : "geo_point" }, |
| 38 | + "latitude" : { "type" : "float" }, |
| 39 | + "longitude" : { "type" : "float" } |
90 | 40 | }
|
91 | 41 | }
|
92 | 42 | }
|
|
0 commit comments