web / lib/services/schema-builder/field-mapping-detection
lib/services/schema-builder/field-mapping-detection
Language-aware field mapping detection for schema building.
Provides detection of standard event fields (title, description, timestamp, geo) based on dataset language. Supports multiple languages including English, German, French, Spanish, Italian, Dutch, and Portuguese.
Interfaces
FieldMappings
Field mappings detected or configured for a schema
Properties
titlePath
titlePath:
null|string
descriptionPath
descriptionPath:
null|string
timestampPath
timestampPath:
null|string
latitudePath
latitudePath:
null|string
longitudePath
longitudePath:
null|string
locationPath
locationPath:
null|string
Functions
detectFieldMappings()
detectFieldMappings(
fieldStats,language):FieldMappings
Detects field mappings for a dataset based on language
Parameters
fieldStats
Record<string, FieldStatistics>
Statistics for all fields in the dataset
language
string
ISO-639-3 language code (e.g., ‘eng’, ‘deu’, ‘fra’)
Returns
Detected field mappings