@terascope/types / data-types
data-types
Index
Enumerations
Enumeration | Description |
---|---|
DateFormat | A list of valid valid formats for FieldType.Date. date-fns string format can be used, see https://date-fns.org/v2.16.1/docs/format |
FieldType | The data type of a field |
TimeResolution | - |
Interfaces
Interface | Description |
---|---|
DataTypeConfig | The DataType fields config with version |
DataTypeFieldConfig | The configuration for an individual field |
Type Aliases
DataTypeFields
DataTypeFields:
Record
<string
,DataTypeFieldConfig
>
The DataType fields configuration
Source
DataTypeVersion
DataTypeVersion:
1
The major DataType config version
Source
DeprecatedFieldType
DeprecatedFieldType:
"Boolean"
|"Boundary"
|"Byte"
|"Date"
|"Domain"
|"Double"
|"Float"
|"Geo"
|"GeoPoint"
|"GeoJSON"
|"Hostname"
|"Integer"
|"IPRange"
|"IP"
|"KeywordCaseInsensitive"
|"KeywordTokensCaseInsensitive"
|"KeywordPathAnalyzer"
|"KeywordTokens"
|"Keyword"
|"Long"
|"NgramTokens"
|"Object"
|"Short"
|"Text"
|"String"
|"Number"
|"Any"
Deprecated
use the enum FieldType
Source
ReadonlyDataTypeConfig
ReadonlyDataTypeConfig:
Readonly
<Overwrite
<DataTypeConfig
,object
>>
A readonly version of the DataTypeConfig
Source
ReadonlyDataTypeFields
ReadonlyDataTypeFields:
Record
<string
,Readonly
<DataTypeFieldConfig
>>
A readonly version of DataType fields configuration
Source
Variables
availableFieldTypes
const
availableFieldTypes:ReadonlyArray
<FieldType
>
A list of all of the Field Types
Source
dataTypeVersions
const
dataTypeVersions:ReadonlyArray
<number
>
A list of DataType config versions
Source
indexedRequiredFieldTypes
const
indexedRequiredFieldTypes:object
Type declaration
Domain
Domain:
boolean
=true
GeoJSON
GeoJSON:
boolean
=true
Hostname
Hostname:
boolean
=true
KeywordCaseInsensitive
KeywordCaseInsensitive:
boolean
=true
KeywordPathAnalyzer
KeywordPathAnalyzer:
boolean
=true
KeywordTokens
KeywordTokens:
boolean
=true
KeywordTokensCaseInsensitive
KeywordTokensCaseInsensitive:
boolean
=true
NgramTokens
NgramTokens:
boolean
=true