From 99c698bd16871011f277f2658a8346928f74339b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Wieland=20Sch=C3=B6bl?= Date: Mon, 5 Jul 2021 17:06:04 +0200 Subject: [PATCH] test: add filterable test for indirect types --- test/mapping-model/mappings/src/filterable-tag.ts | 15 +++++++++++++++ 1 file changed, 15 insertions(+) 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 + } + } } } }