Merge pull request #8500 from spalger/workaround/es-20707
Force aggregatable geo_points
This commit is contained in:
commit
a23cd39bd9
|
@ -9,6 +9,14 @@ export default function ($http) {
|
||||||
const stats = _.get(res, 'data.fields', {});
|
const stats = _.get(res, 'data.fields', {});
|
||||||
|
|
||||||
return _.map(fields, (field) => {
|
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]);
|
return _.assign(field, stats[field.name]);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
|
@ -52,8 +52,9 @@ bdd.describe('creating and deleting default index', function describeIndexTests(
|
||||||
'name',
|
'name',
|
||||||
'type',
|
'type',
|
||||||
'format',
|
'format',
|
||||||
|
'searchable',
|
||||||
|
'aggregatable',
|
||||||
'analyzed',
|
'analyzed',
|
||||||
'indexed',
|
|
||||||
'controls'
|
'controls'
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue