Wrong Lucene vrsion in current 6.2.3 ES Java Client

I try to use the new Java elasticsearch-rest-high-level-client. For that I added the maven depenencies shown below:

org.elasticsearch
elasticsearch
${version.es}
compile


org.elasticsearch.client
elasticsearch-rest-client
${version.es}
test


org.elasticsearch.client
elasticsearch-rest-high-level-client
${version.es}
test

The initilasation of the Restclient says:
java.lang.NoSuchFieldError: LUCENE_6_0_0

The analyse of the maven dependencies:
F:\IDE\Projects_Git\reporting-logmodel>mvn dependency:tree -Dverbose -Dincludes=org.apache.lucene | grep 5.3.1
[INFO] +- org.apache.lucene:lucene-core:jar:5.3.1:compile (version managed from 7.2.1)
[INFO] +- org.apache.lucene:lucene-analyzers-common:jar:5.3.1:compile (version managed from 7.2.1)
[INFO] +- org.apache.lucene:lucene-backward-codecs:jar:5.3.1:compile (version managed from 7.2.1)
[INFO] +- org.apache.lucene:lucene-misc:jar:5.3.1:compile (version managed from 7.2.1)
[INFO] +- org.apache.lucene:lucene-queries:jar:5.3.1:compile (version managed from 7.2.1)
[INFO] +- org.apache.lucene:lucene-queryparser:jar:5.3.1:compile (version managed from 7.2.1)

And that resolves my Problem:

org.elasticsearch
elasticsearch
${version.es}
test


org.apache.lucene
lucene-core




org.apache.lucene
lucene-core
7.2.1
test

Please format your code, logs or configuration files using </> icon as explained in this guide and not the citation button. It will make your post more readable.

Or use markdown style like:

```
CODE
```

There's a live preview panel for exactly this reasons.

Lots of people read these forums, and many of them will simply skip over a post that is difficult to read, because it's just too large an investment of their time to try and follow a wall of badly formatted text.
If your goal is to get an answer to your questions, it's in your interest to make it as easy to read and understand as possible.
Please update your post.

I have seen to late sorry :-D.

No worries. You can always edit your post.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.