ES: return .raw fields in field lookups, closes #8975

This commit is contained in:
Torkel Ödegaard
2017-08-02 16:52:43 +02:00
parent a5d5f3d82f
commit a5bdfec0de
2 changed files with 14 additions and 3 deletions

View File

@@ -129,7 +129,10 @@ describe('ElasticDatasource', function() {
'@timestamp': {type: 'date'},
beat: {
properties: {
name: {type: 'string'},
name: {
fields: {raw: {type: 'keyword'}},
type: 'string'
},
hostname: {type: 'string'},
}
},
@@ -169,6 +172,7 @@ describe('ElasticDatasource', function() {
var fields = _.map(fieldObjects, 'text');
expect(fields).to.eql([
'@timestamp',
'beat.name.raw',
'beat.name',
'beat.hostname',
'system.cpu.system',