[test fixtures] string -> text/keyword for logstash data (#9799)

This commit is contained in:
Jonathan Budzenski 2017-01-09 15:00:16 -06:00 committed by GitHub
parent 274ed4c6be
commit 980b67ed68
2 changed files with 18 additions and 34 deletions

View file

@ -19,13 +19,10 @@ module.exports = {
'dynamic_templates': [{
'string_fields': {
'mapping': {
'type': 'string',
'index': 'analyzed',
'type': 'text',
'fields': {
'raw': {
'index': 'not_analyzed',
'type': 'string',
'doc_values': true
'type': 'keyword',
}
}
},
@ -52,22 +49,18 @@ module.exports = {
'type': 'double'
},
'referer': {
'type': 'string',
'index': 'not_analyzed'
'type': 'keyword'
},
'geo': {
'properties': {
'srcdest': {
'type': 'string',
'index': 'not_analyzed'
type: "keyword"
},
'dest': {
'type': 'string',
'index': 'not_analyzed'
type: "keyword"
},
'src': {
'type': 'string',
'index': 'not_analyzed'
type: "keyword"
},
'coordinates': {
'type': 'geo_point'
@ -77,16 +70,15 @@ module.exports = {
'meta': {
'properties': {
'related': {
'type': 'string'
'type': 'text'
},
'char': {
'type': 'string',
'index': 'not_analyzed'
type: "keyword"
},
'user': {
'properties': {
'firstname': {
'type': 'string'
'type': 'text'
},
'lastname': {
'type': 'integer',

View file

@ -19,13 +19,10 @@ module.exports = {
'dynamic_templates': [{
'string_fields': {
'mapping': {
'type': 'string',
'index': 'analyzed',
'type': 'text',
'fields': {
'raw': {
'index': 'not_analyzed',
'type': 'string',
'doc_values': true
'type': 'keyword',
}
}
},
@ -52,22 +49,18 @@ module.exports = {
'type': 'double'
},
'referer': {
'type': 'string',
'index': 'not_analyzed'
'type': 'keyword'
},
'geo': {
'properties': {
'srcdest': {
'type': 'string',
'index': 'not_analyzed'
type: "keyword"
},
'dest': {
'type': 'string',
'index': 'not_analyzed'
type: "keyword"
},
'src': {
'type': 'string',
'index': 'not_analyzed'
type: "keyword"
},
'coordinates': {
'type': 'geo_point'
@ -77,16 +70,15 @@ module.exports = {
'meta': {
'properties': {
'related': {
'type': 'string'
'type': 'text'
},
'char': {
'type': 'string',
'index': 'not_analyzed'
type: "keyword"
},
'user': {
'properties': {
'firstname': {
'type': 'string'
'type': 'text'
},
'lastname': {
'type': 'integer',