mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 17:59:23 -04:00
This commit is contained in:
parent
17f2f23f11
commit
cab952bb92
2 changed files with 4 additions and 4 deletions
|
@ -48,7 +48,7 @@ const termsAgg = ({ field, size, direction, query }) => {
|
|||
source: field.script,
|
||||
lang: field.lang
|
||||
};
|
||||
terms.valueType = field.type === 'number' ? 'float' : field.type;
|
||||
terms.value_type = field.type === 'number' ? 'float' : field.type;
|
||||
} else {
|
||||
terms.field = field.name;
|
||||
}
|
||||
|
@ -58,8 +58,8 @@ const termsAgg = ({ field, size, direction, query }) => {
|
|||
}
|
||||
|
||||
return {
|
||||
'termsAgg': {
|
||||
'terms': terms
|
||||
termsAgg: {
|
||||
terms: terms
|
||||
}
|
||||
};
|
||||
};
|
||||
|
|
|
@ -233,7 +233,7 @@ export const termsBucketAgg = new BucketAggType({
|
|||
// thus causing issues with filtering. This probably causes other issues since float might not
|
||||
// be able to contain the number on the elasticsearch side
|
||||
if (output.params.script) {
|
||||
output.params.valueType = agg.getField().type === 'number' ? 'float' : agg.getField().type;
|
||||
output.params.value_type = agg.getField().type === 'number' ? 'float' : agg.getField().type;
|
||||
}
|
||||
|
||||
if (agg.params.missingBucket && agg.params.field.type === 'string') {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue