I’m trying to use hibernate-search-elasticsearch to connect to an existing ElasticSearch server, but having problems with the configuration. Our ElasticSearch server has a context path with the version and environment (DEV, TEST, PROD) and I cannot find a way to specify that with the available config settings.
Server urls would be (for example: http://es1.mycompany.com/es/5x/DEV3)
If I try to configure that entire url as hibernate.search.default.elasticsearch.host it includes the context path in the host lookup and fails (java.net.UnknownHostException: es1.mycompany.com/es/5x/DEV3).
If I leave the context path off it tries to send a “get” request to just the host for ElasticSearch version info, and that, of course also fails because request needs to include the context path.
Is there another config setting that I’m missing? I can’t find any mention of one in the hibernate-search-elasticsearch documentation. Has anyone else run into this problem?