elasticsearch/elasticsearch — Issue #1398: Allow different source/target tokenizers for SynonymFilter
Author: outoftime
Created: 2011-10-14 16:01:11+00:00
State: open

This is probably an edge case, but it would be great to be able to specify different tokenizers for the source and the target in the SynonymFilter. My particular use case is that my input is structured, multi-word text that I want to run through a KeywordAnalyzer to match multi-word tokens in the synonyms.txt source side; but I'd like for the output to be run through a StandardTokenizer. So it would be nice if the SynonymFilter provided a `source_tokenizer` and `target_tokenizer` option, with the `tokenizer` option just setting both to the same.