mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 17:59:23 -04:00
removed condition on the IP field type when retrieving doc values
This commit is contained in:
parent
eb70e84a56
commit
d19ba5698c
2 changed files with 1 additions and 9 deletions
|
@ -76,12 +76,6 @@ describe('Top hit metric', function () {
|
|||
expect(aggDsl.top_hits.docvalue_fields).to.eql([ 'bytes' ]);
|
||||
});
|
||||
|
||||
it('should only request for the source if the field is an IP', function () {
|
||||
init({ field: 'ip' });
|
||||
expect(aggDsl.top_hits._source).to.be('ip');
|
||||
expect(aggDsl.top_hits.docvalue_fields).to.be(undefined);
|
||||
});
|
||||
|
||||
it('should only request for the source if the field does not have the doc_values property', function () {
|
||||
init({ field: 'ssl' });
|
||||
expect(aggDsl.top_hits._source).to.be('ssl');
|
||||
|
|
|
@ -47,9 +47,7 @@ export default function AggTypeMetricTopProvider(Private) {
|
|||
}
|
||||
};
|
||||
} else {
|
||||
// do not try to get the doc_values for IP fields, since it is
|
||||
// an internal representataion of the IP and so of no use for display.
|
||||
if (field.type !== 'ip' && field.doc_values) {
|
||||
if (field.doc_values) {
|
||||
output.params.docvalue_fields = [ field.name ];
|
||||
}
|
||||
output.params._source = field.name === '_source' ? true : field.name;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue