OpenSearch/modules/analysis-common
Christoph Büscher c1c447a4cf
Check stemmer language setting early (#34601)
Currently the StemmerTokenFilterFactory checks the validity of the language
setting only when the first TokenStream is processed. Instead we should throw an
error earlier at mapping creation time. This change adds a check to the
StemmerTokenFilterFactory constructor that checks for a valid `language` setting
by trying to create a new TokenStream from an empty input stream. This will
throw errors about wrong language settings early on.

Closes #34170
2018-10-19 12:59:23 +02:00
..
src Check stemmer language setting early (#34601) 2018-10-19 12:59:23 +02:00
build.gradle Add conditional token filter to elasticsearch (#31958) 2018-09-05 14:52:43 +01:00