Token filter reference
editToken filter reference
editToken filters accept a stream of tokens from a tokenizer and can modify tokens (eg lowercasing), delete tokens (eg remove stopwords) or add tokens (eg synonyms).
Elasticsearch has a number of built-in token filters you can use to build custom analyzers.