Hibernate Search 6.0.0.Alpha7 发布

栏目: 软件资讯 · 发布时间: 4年前

内容简介:Hibernate Search 6.0.0.Alpha7 发布了,这是 6.0 分支的第 7 个 alpha 测试版本,该版本主要是恢复索引字段类型参数,恢复显式的索引 API,升级到 Elasticsearch 6.8 和 7.1. 完整记录包括: 实现所有 Hibernat...

Hibernate Search 6.0.0.Alpha7 发布了,这是 6.0 分支的第 7 个 alpha 测试版本,该版本主要是恢复索引字段类型参数,恢复显式的索引 API,升级到 Elasticsearch 6.8 和 7.1.

完整记录包括:

实现所有 Hibernate Search 5 字段类型参数

HSEARCH-3048 added support for the searchable, norms and termVectors field type parameters, bringing Search 6 on par with Search 5.

See this section of the documentation for a description of all available field type parameters.

恢复显式的写索引 API

HSEARCH-3049 introduced APIs for explicit writes to indexes, as an alternative or complement to automatic indexing.

The APIs are different from Search 5, but provide similar features.

See the "Explicit indexing" section of the documentation for more information.

向后不兼容的 API 调整

  • HSEARCH-3610: Search.getSearchSession(Session) was renamed to Search.session(Session). The old method is still available, but will be removed soon.

  • HSEARCH-3591: SearchQueryContext#sort now expects a Function parameter instead of a Consumer.

  • HSEARCH-3617: The by(SearchSort) method was removed from the sort DSL.

  • HSEARCH-3604: The concept of "reference projection" has been renamed to "entity reference projection": in the search DSL, asReference() became asEntityReference() and reference() became entityReference(). Search queries returning references to entities now use the org.hibernate.search.mapper.orm.common.EntityReference type instead of PojoReference.

  • HSEARCH-3605: Some API types related to bridges, container extractors and annotation-based entity mapping have been moved for the sake of consistency.

  • HSEARCH-3587: MarkerMapping#builder was renamed to MarkerMapping#marker.

文档

  • There is javadoc on all APIs (HSEARCH-3367).

  • Every available predicate, sort and projection is referenced and has at least one example in the documentation.

  • Newly reintroduced features such as the write APIs are being documented progressively.

Version upgrades

Other improvements and bug fixes

  • HSEARCH-2539: MassIndexer.start() now returns a CompletableFuture instead of a Future.

  • HSEARCH-3203: @DocumentId now works correctly on properties that are not the entity ID.

  • HSEARCH-3254: When building a field sort, .onMissingValue().use() now works properly for string fields with the Lucene backend.

  • HSEARCH-3255: When building a field sort, .onMissingValue().use() now works properly for date/time fields with the Elasticsearch backend.

  • HSEARCH-3616: When building a "match id" predicate, the matchingAny() now expects a Collection instead of Collection

  • HSEARCH-3618: Distance projection will no longer lead to missing hits.

  • HSEARCH-3192: SearchPredicate, SearchSort and SearchProjection can now safely be cached and reused from one scope instance to another: Hibernate Search will check that they are compatible with the new scope.

完整列表请看 release notes.


以上所述就是小编给大家介绍的《Hibernate Search 6.0.0.Alpha7 发布》,希望对大家有所帮助,如果大家有任何疑问请给我留言,小编会及时回复大家的。在此也非常感谢大家对 码农网 的支持!

查看所有标签

猜你喜欢:

本站部分资源来源于网络,本站转载出于传递更多信息之目的,版权归原作者或者来源机构所有,如转载稿涉及版权问题,请联系我们

中国游戏风云

中国游戏风云

王亚晖 / 中国发展出版社 / 2018-11-1 / 168.00元

本书以时间为序,介绍了整个游戏产业发展的跌宕起伏。分别讲述了早期游戏市场、单机游戏、网络游戏、网页游戏和手机游戏以及未来游戏世界。作者本人曾为知名游戏产业人,书中披露了大量不为大众所知的行业故事和行业数据。为游戏的制作者、投资人、玩家,抑或想了解游戏的人,提供了一个理性的梳理。一起来看看 《中国游戏风云》 这本书的介绍吧!

HTML 压缩/解压工具
HTML 压缩/解压工具

在线压缩/解压 HTML 代码

Markdown 在线编辑器
Markdown 在线编辑器

Markdown 在线编辑器

正则表达式在线测试
正则表达式在线测试

正则表达式在线测试