@terascope/types / data-types / DataTypeFieldConfig
Interface: DataTypeFieldConfig
The configuration for an individual field
Indexable
[extra
: string
]: unknown
Properties
array?
optional
array:boolean
Indicates whether the field is an array
Source
description?
optional
description:string
A description for the fields
Source
format?
optional
format:string
Specify the format for a specific fields. Currently this is only support with FieldType.Date
Source
indexed?
optional
indexed:boolean
Specifies whether the field is index in elasticsearch
(Not supported by some field types... see indexedRequiredFieldTypes for types that cannot be false)
Default
true
Source
is_primary_date?
optional
is_primary_date:boolean
The default date field used primarily for naming timeseries indices
Source
locale?
optional
locale:string
Specify the locale for the field (not compatible with all fields) Must be represented in a Language Tags (BCP 47)
Source
time_resolution?
optional
time_resolution:TimeResolution
Indicates whether the data has second or millisecond resolutions
used with the is_primary_date
Source
type
type:
DeprecatedFieldType
|FieldType
The type of field
Source
use_fields_hack?
optional
use_fields_hack:boolean
A temporary flag to fix KeywordCaseInsensitive to be a type keyword with case insensitive .text fields