diff --git a/test/mapping-model/mappings/src/filterable-tag.ts b/test/mapping-model/mappings/src/filterable-tag.ts index 7583f27b..9d3e1cb5 100644 --- a/test/mapping-model/mappings/src/filterable-tag.ts +++ b/test/mapping-model/mappings/src/filterable-tag.ts @@ -17,6 +17,8 @@ import {ThingType} from './types'; import {MapAggTestOptions} from '../../MapAggTestOptions'; import {ElasticsearchDataType} from '../../../../src/mappings/definitions/typemap'; +export type FilterableEnumType = 'a' | 'b' | 'c'; + /** * @indexable */ @@ -38,6 +40,11 @@ export interface FilterableTag { */ baz: 'some literal' + /** + * @filterable + */ + buz: FilterableEnumType + type: ThingType.FilterableTag } @@ -68,6 +75,14 @@ export const filterableTagTest: MapAggTestOptions = { type: ElasticsearchDataType.keyword } } + }, + buz: { + type: ElasticsearchDataType.keyword, + fields: { + raw: { + type: ElasticsearchDataType.keyword + } + } } } }