mirror of
https://gitlab.com/openstapps/openstapps.git
synced 2026-01-08 14:32:50 +00:00
feat: add support for date mapping
This commit is contained in:
@@ -42,6 +42,16 @@ export interface MapExplicitTypes {
|
||||
*/
|
||||
esText: string;
|
||||
|
||||
/**
|
||||
* @date
|
||||
*/
|
||||
esEpochMsDate: number
|
||||
|
||||
/**
|
||||
* @date
|
||||
*/
|
||||
esStringDate: string
|
||||
|
||||
type: ThingType.MapExplicitTypes;
|
||||
}
|
||||
|
||||
@@ -60,7 +70,13 @@ export const mapExplicitTypesTest: MapAggTestOptions = {
|
||||
},
|
||||
esText: {
|
||||
type: ElasticsearchDataType.text
|
||||
}
|
||||
},
|
||||
esEpochMsDate: {
|
||||
type: ElasticsearchDataType.date
|
||||
},
|
||||
esStringDate: {
|
||||
type: ElasticsearchDataType.date
|
||||
},
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user