Unknown char_filter type [pattern_replace]

It's not possible to do so. Read https://www.elastic.co/blog/elasticsearch-the-server

Note that to run integration tests (not unit tests) you need a real elasticsearch server. Read In memory testing with RestHighLevelClient

1 Like