Right now it's not possible to write a modularized java application that talks with Elasticsearch using the High Level Rest Client. This came out of the discussion in #28984.
Since the HLRC depends on server, the application has to require elasticsearch
because some of the classes that one would use are in Server, like SearchSourceBuilder
.
This won't work because server also has an org.elasticsearch.client
package.
The Module system doesn't allow this.
There are other modules that one would have to require, like org.apache.http.HttpHost
so these will also have to work as modules.
Pinging @elastic/es-core-infra
Pinging @elastic/es-core-features
Any news about it, or a known workaround?
Sorry @laurent-thiebaud-gisaia, no updates so far.
We do plan to work on it but can't promise anything about when that will happen.
Any updates on this?
This just bit me as well. Considering that Java 9 was released over three years ago, and JPMS is not going away, can't we please get a fix for this?