Elasticsearch官网更新很快,截止2021/9/14最新版本已是7.14了,spring官网也在紧锣密鼓地在支持,以下为支持对应的版本一览,供有兴趣之士参考:
序 | Spring Data Elasticsearch及版本 | 特性 | 支持Elasticsearch版本 | 备注 |
1 | Spring Data Elasticsearch 4.2 | Support for custom routing values | Elasticsearch 7.10.0 | |
2 | Spring Data Elasticsearch 4.1 | 1、Improved API for alias management. 2、Introduction of ReactiveIndexOperations for index management. 3、Index templates support. 4、Support for Geo-shape data with GeoJson. | Elasticsearch 7.9.3 | Uses Spring 5.3 |
3 | Spring Data Elasticsearch 4.0 | 1、Deprecation of TransportClient usage. 2、Implements most of the mapping-types available for the index mappings. 3、Removal of the Jackson ObjectMapper, now using the MappingElasticsearchConverter 4、Cleanup of the API in the *Operations interfaces, grouping and renaming methods so that they match the Elasticsearch API, deprecating the old methods, aligning with other Spring Data modules. 5、Introduction of SearchHit<T> class to represent a found document together with the relevant result metadata for this document (i.e. sortValues). 6、Introduction of the SearchHits<T> class to represent a whole search result together with the metadata for the complete search result (i.e. max_score). 7、Introduction of SearchPage<T> class to represent a paged result containing a SearchHits<T> instance. 8、Introduction of the GeoDistanceOrder class to be able to create sorting by geographical distance 9、Implementation of Auditing Support 10、Implementation of lifecycle entity callbacks | Elasticsearch 7.6.2 | Uses Spring 5.2 |
4 | Spring Data Elasticsearch 3.2 | 1、Secured Elasticsearch cluster support with Basic Authentication and SSL transport. 2、Reactive programming support with Reactive Elasticsearch Operations and Reactive Elasticsearch Repositories. 3、Introduction of the ElasticsearchEntityMapper as an alternative to the Jackson ObjectMapper. 4、Field name customization in @Field. 5、Support for Delete by Query. | Elasticsearch 6.8.1 |