@HenningAndersen Please find my reply inline.
- Is this a client program using the elasticsearch transport protocol or are you embedding the elasticsearch service into your program?
Yes its a client code, using elasticsearch high level REST client
- The exception shown above, does that occur while starting the elasticsearch server or a client program?
We got the above exception while creating elasticsearch query using Queriesbuilder, Please note that service bootup was successful.
- Not sure exactly how spring boot does class loading, but would it be possible to find out if any part of your application has another org.apache.lucene.util.Version version?
I Have plot the mvn dependency tree, I didn't get lucene-core dependency from any other source.
- Would it be possible to share the full stack trace?
at org.elasticsearch.Version.(Version.java:76) ~[elasticsearch-6.7.0.jar!/:6.7.0]
at org.elasticsearch.common.logging.DeprecationLogger.(DeprecationLogger.java:144) ~[elasticsearch-6.7.0.jar!/:6.7.0]
at org.elasticsearch.search.builder.SearchSourceBuilder.(SearchSourceBuilder.java:81) ~[elasticsearch-6.7.0.jar!/:6.7.0]
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) ~[na:1.8.0_92-internal]
Please note that we got above Exception when creating an object of SearchSourceBuilder.java class
def searchSourcebuilder = new SearchSourceBuilder()