Hibernate Search 5.10.0.Beta1 已发布,这是 5.10 分支的第一个测试版本,该版本的主要目标是针对 Hibernate ORM 5.3,但也增加了 DI 框架集成和 TikaBridge 改进。
下面介绍一下自 Hibernate Search 5.9.0.Final 以来值得关注的变化:
Hibernate Search 5.10 is designed to work with Hibernate ORM 5.3.
Hibernate Search now taps into Hibernate ORM’s integration to dependency injection frameworks. If you use a dependency injection framework integrating with Hibernate ORM 5.3, and you add field bridges to your dependency injection context, then Hibernate Search will automatically retrieve and use field bridges from this context.
This allows you in particular to inject components from your DI context into your field bridges, using your DI framework’s features (@java.injext.Inject, Spring’s @Autowired, …).
The integration is already known to work in a CDI 2.0 environment such as WildFly 12 (not released yet as of February 23, 2018), and the Spring team will probably make it work as soon as it adds support for JPA 2.2.
Tika bridges now offer the option to provide your own Tika parser instead of relying on content auto-detection using the default configuration. See the TikaBridge documentation for more information.
获取
所有的细节都可以在 hibernate.org 上的专用页面上获得。
软件详情:https://hibernate.atlassian.net/secure/ReleaseNote.jspa?projectId=10061&version=31636
来自:开源中国社区