We just published Hibernate Search version 5.8.0.Beta1
, which is now
compatible with Elasticsearch versions 5.x
.
New improved Elasticsearch client
This release now uses the new Elasticsearch REST client, which is expected to be a safe choice in terms of long term maintenance as it’s sponsored and recommended by the Elasticsearch team.
Compared to the driver we used previously, this one uses a state of the art reactive architecture, so we can take advantage of more efficient resource utilization.
Elasticsearch 2.x is still supported
The new driver is backwards compatible, so we’ll still be able to connect to
clusters running Elasticsearch 2.x
.
This doesn’t need any configuration flag as Hibernate Search can automatically detect the version of Elasticsearch it’s being pointed to.
The features supported by Elasticsearch 5.x
and 2.x
are however slightly
different and you’ll find that some low level mapping features are documented
as compatible with only one specific version.
The migration guide will be updated when this minor release will be feature complete.
New Simple Query String
supported by the Query builder DSL
The useful capabilities from Lucene’s SimpleQueryParser
are now conveniently
exposed by our higher level DSL.
We’ll publish a detailed blog about this new feature soon: stay tuned!
If you can’t wait, we won’t prevent you from peeking into the Simple Query String documentation.
Simplified JNDI configuration
If you integrated any external component into Hibernate Search using JNDI, for example a JMS queue or an Infinispan cache, this configuration was simplified.
You will no longer need to set Hibernate Search specific configuration
properties such as how to set the InitialContext
for JNDI lookups:
only configure Hibernate ORM, and Hibernate Search will inherit the same
settings.
See also the JNDI configuration in the Hibernate ORM documentation.
How to get these releases
All versions are available on Hibernate Search’s web site.
Ideally use a tool to fetch it from Maven central; these are the coordinates:
<dependency>
<groupId>org.hibernate</groupId>
<artifactId>hibernate-search-orm</artifactId>
<version>5.8.0.Beta1</version>
</dependency>
To use the experimental Elasticsearch integration you’ll also need:
<dependency>
<groupId>org.hibernate</groupId>
<artifactId>hibernate-search-elasticsearch</artifactId>
<version>5.8.0.Beta1</version>
</dependency>
Downloads from Sourceforge are available as well.
Feedback
Feedback always welcome!
Please let us know of any problem or suggestion by creating an issue on JIRA, or by sending an email to the developer’s developer’s mailing lists, or posting on the forums.
We also monitor Stack Overflow; when posting on SO please use the tag hibernate-search
.