feat: add support for date mapping

This commit is contained in:
Wieland Schöbl
2020-11-18 12:26:03 +01:00
parent 485430b7f2
commit a09be1d941
3 changed files with 28 additions and 1 deletions

View File

@@ -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
},
}
}
};