Hibernate Search 5.5.0 发布,此版本更新内容如下:
** Bug 修复
* [HSEARCH-1870] - The DSL should support keyword queries on numerically indexed Date fields
* [HSEARCH-1955] - ScheduledCommitPolicy helper threads not handling exceptions
* [HSEARCH-1987] - @NumericField doesn't work as expected when several fields are present
* [HSEARCH-1992] - Validation of valid sorting options to skip index uninverting needs to ensure consistent mapping across all entities of each involved index
* [HSEARCH-1999] - AbstractDocumentBuilder.isDirty() returns false for indexed fields if Hibernate property name does not correspond to the Java field name
* [HSEARCH-2000] - Ignore sortable fields when contained indirectly within embedded to-many association
* [HSEARCH-2002] - Have the Infinispan Directory maven redirect point to the right version
* [HSEARCH-2003] - numericField() in the DSL should take field name into account
* [HSEARCH-2004] - Queries in unit tests should be inside a transaction
** 新特性
* [HSEARCH-1993] - Allow to define sortable fields through configuration DSL
** 任务
* [HSEARCH-1933] - Review javadoc warnings
* [HSEARCH-1966] - Some javadoc mistakes are causing background build errors
* [HSEARCH-1983] - Have the integration tests verify which Hibernate Search version they are using
** 改进
* [HSEARCH-1997] - NumericFieldUtils to avoid checking for Java8 time classes multiple times
** 废弃
* [HSEARCH-2005] - Deprecate ContainedInMapping#numericField()
更多内容和下载:http://sourceforge.net/projects/hibernate/files/hibernate-search/5.5.0.Final/
Hibernate Search的作用是对数据库中的数据进行检索的。它是hibernate对著名的全文检索系统Lucene的一个集成方案,作用在于对数据表中某些内容庞大的字段(如声明为text的字段)建立全文索引,这样通过hibernate search就可以对这些字段进行全文检索后获得相应的POJO,从而加快了对内容庞大字段进行模糊搜索的速度(sql语句中like匹配)。
Hibernate Search主要有以下功能特点:
1,功能强大,配置简单 - 配置只需要修改persistence.xml(JPA),hibernate.cfg.xml(Hibernate)
2,支持Hibernate,以及EJB3 JPA标准应用
3,集成全文搜索引擎Lucene - Lucene是Apache项目组下的一个功能强大的全文搜索引擎项目
4,可以简单透明索引查询过的数据
5,支持复杂检索 - 支持Wild Card(诸如*, ?等通配符号),多关键字,模糊查询,排序等
6,支持Clustering
7,支持直接访问Lucene API
8,对Lucene索引,API的高效管理
Hibernate Search运行的环境如下:
1、JDK或JRE 5.0以上
2、Hibernate-Search以及相应的依赖包
3、Hibernate Core 3.2.X
4、Hibernate Annotations 3.3.X
来自:开源中国社区

