Avoid shard failures when performing bbox filter on coordinate maps (#19533)

This commit is contained in:
Thomas Neirynck 2018-05-30 09:41:53 -04:00 committed by GitHub
parent 29cb018771
commit 540f24313e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -138,10 +138,12 @@ export const geoHashBucketAgg = new BucketAggType({
} else {
mapCollar = lastMapCollar;
}
const boundingBox = {};
boundingBox[agg.getField().name] = {
top_left: mapCollar.top_left,
bottom_right: mapCollar.bottom_right
const boundingBox = {
ignore_unmapped: true,
[agg.getField().name]: {
top_left: mapCollar.top_left,
bottom_right: mapCollar.bottom_right
}
};
aggs.push(new AggConfig(agg.vis, {
type: 'filter',