Skip to content

Commit 980b67e

Browse files
authored
[test fixtures] string -> text/keyword for logstash data (#9799)
1 parent 274ed4c commit 980b67e

File tree

2 files changed

+18
-34
lines changed

2 files changed

+18
-34
lines changed

test/fixtures/scenarios/logstash_functional/makelogs_index_definition.js

+9-17
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,10 @@ module.exports = {
1919
'dynamic_templates': [{
2020
'string_fields': {
2121
'mapping': {
22-
'type': 'string',
23-
'index': 'analyzed',
22+
'type': 'text',
2423
'fields': {
2524
'raw': {
26-
'index': 'not_analyzed',
27-
'type': 'string',
28-
'doc_values': true
25+
'type': 'keyword',
2926
}
3027
}
3128
},
@@ -52,22 +49,18 @@ module.exports = {
5249
'type': 'double'
5350
},
5451
'referer': {
55-
'type': 'string',
56-
'index': 'not_analyzed'
52+
'type': 'keyword'
5753
},
5854
'geo': {
5955
'properties': {
6056
'srcdest': {
61-
'type': 'string',
62-
'index': 'not_analyzed'
57+
type: "keyword"
6358
},
6459
'dest': {
65-
'type': 'string',
66-
'index': 'not_analyzed'
60+
type: "keyword"
6761
},
6862
'src': {
69-
'type': 'string',
70-
'index': 'not_analyzed'
63+
type: "keyword"
7164
},
7265
'coordinates': {
7366
'type': 'geo_point'
@@ -77,16 +70,15 @@ module.exports = {
7770
'meta': {
7871
'properties': {
7972
'related': {
80-
'type': 'string'
73+
'type': 'text'
8174
},
8275
'char': {
83-
'type': 'string',
84-
'index': 'not_analyzed'
76+
type: "keyword"
8577
},
8678
'user': {
8779
'properties': {
8880
'firstname': {
89-
'type': 'string'
81+
'type': 'text'
9082
},
9183
'lastname': {
9284
'type': 'integer',

test/fixtures/scenarios/makelogs/makelogs_index_definition.js

+9-17
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,10 @@ module.exports = {
1919
'dynamic_templates': [{
2020
'string_fields': {
2121
'mapping': {
22-
'type': 'string',
23-
'index': 'analyzed',
22+
'type': 'text',
2423
'fields': {
2524
'raw': {
26-
'index': 'not_analyzed',
27-
'type': 'string',
28-
'doc_values': true
25+
'type': 'keyword',
2926
}
3027
}
3128
},
@@ -52,22 +49,18 @@ module.exports = {
5249
'type': 'double'
5350
},
5451
'referer': {
55-
'type': 'string',
56-
'index': 'not_analyzed'
52+
'type': 'keyword'
5753
},
5854
'geo': {
5955
'properties': {
6056
'srcdest': {
61-
'type': 'string',
62-
'index': 'not_analyzed'
57+
type: "keyword"
6358
},
6459
'dest': {
65-
'type': 'string',
66-
'index': 'not_analyzed'
60+
type: "keyword"
6761
},
6862
'src': {
69-
'type': 'string',
70-
'index': 'not_analyzed'
63+
type: "keyword"
7164
},
7265
'coordinates': {
7366
'type': 'geo_point'
@@ -77,16 +70,15 @@ module.exports = {
7770
'meta': {
7871
'properties': {
7972
'related': {
80-
'type': 'string'
73+
'type': 'text'
8174
},
8275
'char': {
83-
'type': 'string',
84-
'index': 'not_analyzed'
76+
type: "keyword"
8577
},
8678
'user': {
8779
'properties': {
8880
'firstname': {
89-
'type': 'string'
81+
'type': 'text'
9082
},
9183
'lastname': {
9284
'type': 'integer',

0 commit comments

Comments
 (0)