2019-10-29 21:36:45 +01:00
|
|
|
/*
|
|
|
|
* 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';
|
2020-08-21 11:33:42 +02:00
|
|
|
import { IndexPatternField } from './types';
|
2019-10-29 21:36:45 +01:00
|
|
|
|
|
|
|
/**
|
|
|
|
* This is a special-case field which allows us to perform
|
|
|
|
* document-level operations such as count.
|
|
|
|
*/
|
2020-08-21 11:33:42 +02:00
|
|
|
export const documentField: IndexPatternField = {
|
|
|
|
displayName: i18n.translate('xpack.lens.indexPattern.records', {
|
|
|
|
defaultMessage: 'Records',
|
|
|
|
}),
|
2019-10-29 21:36:45 +01:00
|
|
|
name: i18n.translate('xpack.lens.indexPattern.records', {
|
|
|
|
defaultMessage: 'Records',
|
|
|
|
}),
|
|
|
|
type: 'document',
|
|
|
|
aggregatable: true,
|
|
|
|
searchable: true,
|
|
|
|
};
|