I'm trying to upgrade java api's to support elastic 6.2.2 . I'm getting below exception for unit tests :
Caused by: org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.elasticsearch.client.Client]: Factory method 'create' threw exception; nested exception is **java.lang.IllegalArgumentException: Unknown char_filter type [pattern_replace] for [my_char_filter]**
... 43 more
Caused by: java.lang.IllegalArgumentException: Unknown char_filter type [pattern_replace] for [my_char_filter]
Are you trying to embed elasticsearch ?
Existing application already uses ES , we are migrating to 6.2.2 from 2.3.2 and so need to update the java apis'.
Template Cluster Initializer fails for below template settings :
Using below dependency in pom:
My question was more: are you trying to start an elasticsearch node from your java test code?
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
Thankyou that was helpful .
This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.