mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 09:48:58 -04:00
[field caps] filter nested and object fields (#23658)
* [field caps] filter nested and object fields * update type list test * update snapshots
This commit is contained in:
parent
1f38026731
commit
6b3bc45b9a
4 changed files with 20 additions and 0 deletions
|
@ -120,5 +120,7 @@ export function readFieldCapsResponse(fieldCapsResponse) {
|
|||
aggregatable: isAggregatable,
|
||||
readFromDocValues: shouldReadFieldFromDocValues(isAggregatable, esType),
|
||||
};
|
||||
}).filter(field => {
|
||||
return !['object', 'nested'].includes(field.type);
|
||||
});
|
||||
}
|
||||
|
|
|
@ -922,6 +922,14 @@ exports[`FieldEditor should show deprecated lang warning 1`] = `
|
|||
"text": "geo_point",
|
||||
"value": "geo_point",
|
||||
},
|
||||
Object {
|
||||
"text": "object",
|
||||
"value": "object",
|
||||
},
|
||||
Object {
|
||||
"text": "nested",
|
||||
"value": "nested",
|
||||
},
|
||||
Object {
|
||||
"text": "geo_shape",
|
||||
"value": "geo_shape",
|
||||
|
|
|
@ -100,7 +100,9 @@ describe('utils/kbn_field_types', () => {
|
|||
'geo_shape',
|
||||
'ip',
|
||||
'murmur3',
|
||||
'nested',
|
||||
'number',
|
||||
'object',
|
||||
'string',
|
||||
'unknown',
|
||||
]);
|
||||
|
|
|
@ -71,6 +71,14 @@ export const KBN_FIELD_TYPES = [
|
|||
name: 'geo_point',
|
||||
esTypes: ['geo_point'],
|
||||
}),
|
||||
new KbnFieldType({
|
||||
name: 'object',
|
||||
esTypes: ['object'],
|
||||
}),
|
||||
new KbnFieldType({
|
||||
name: 'nested',
|
||||
esTypes: ['nested'],
|
||||
}),
|
||||
new KbnFieldType({
|
||||
name: 'geo_shape',
|
||||
esTypes: ['geo_shape'],
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue