kibana/x-pack/plugins/lens/public/indexpattern_datasource/document_field.ts

25 lines
750 B
TypeScript

/*
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
* or more contributor license agreements. Licensed under the Elastic License;
* you may not use this file except in compliance with the Elastic License.
*/
import { i18n } from '@kbn/i18n';
import { IndexPatternField } from './types';
/**
* This is a special-case field which allows us to perform
* document-level operations such as count.
*/
export const documentField: IndexPatternField = {
displayName: i18n.translate('xpack.lens.indexPattern.records', {
defaultMessage: 'Records',
}),
name: i18n.translate('xpack.lens.indexPattern.records', {
defaultMessage: 'Records',
}),
type: 'document',
aggregatable: true,
searchable: true,
};