mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 17:28:26 -04:00
[indexPatterns] add workaround for elastic/elasticsearch#20707
This commit is contained in:
parent
f65c9b595b
commit
22c6f7c55c
1 changed files with 8 additions and 0 deletions
|
@ -9,6 +9,14 @@ export default function ($http) {
|
|||
const stats = _.get(res, 'data.fields', {});
|
||||
|
||||
return _.map(fields, (field) => {
|
||||
if (field.type === 'geo_point' && !stats[field.name]) {
|
||||
// FIXME: remove once https://github.com/elastic/elasticsearch/issues/20707 is fixed
|
||||
return _.assign(field, {
|
||||
'searchable': true,
|
||||
'aggregatable': true
|
||||
});
|
||||
}
|
||||
|
||||
return _.assign(field, stats[field.name]);
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue