Skip to content

Commit

Permalink
[indexPatterns] add workaround for elastic/elasticsearch#20707
Browse files Browse the repository at this point in the history
  • Loading branch information
spalger committed Sep 30, 2016
1 parent f65c9b5 commit 22c6f7c
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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]);
});
});
Expand Down

0 comments on commit 22c6f7c

Please sign in to comment.