diff --git a/modules/analysis-common/src/test/resources/rest-api-spec/test/analysis-common/40_token_filters.yml b/modules/analysis-common/src/test/resources/rest-api-spec/test/analysis-common/40_token_filters.yml index 75658d9351f..d6fe6b9a980 100644 --- a/modules/analysis-common/src/test/resources/rest-api-spec/test/analysis-common/40_token_filters.yml +++ b/modules/analysis-common/src/test/resources/rest-api-spec/test/analysis-common/40_token_filters.yml @@ -273,6 +273,34 @@ - match: { tokens.3.token: magazine } - match: { tokens.3.position: 2 } +--- +"synonym_without_index": + - do: + indices.analyze: + body: + text: wibble + tokenizer: standard + filter: [ { type: synonym, synonyms: [ "wibble, quack" ]}] + - length: { tokens: 2 } + - match: { tokens.0.token: wibble } + - match: { tokens.0.position: 0 } + - match: { tokens.1.token: quack } + - match: { tokens.1.position: 0 } + +--- +"synonym_graph_without_index": + - do: + indices.analyze: + body: + text: wibble + tokenizer: standard + filter: [ { type: synonym_graph, synonyms: [ "wibble, quack" ]}] + - length: { tokens: 2 } + - match: { tokens.0.token: quack } + - match: { tokens.0.position: 0 } + - match: { tokens.1.token: wibble } + - match: { tokens.1.position: 0 } + --- "synonym_graph": - do: