从 5.3.x 升级到 5.4.x

本节描述了从版本 5.3.x 到 5.4.x 的破坏性变更,以及如何用新引入的特性替换已移除的特性。

破坏性变更

NativeQueryBuilder 中的 withKnnQuery 方法已被 withKnnSearches 替换,用于构建带有 knn 搜索的 NativeQuery

KnnQueryKnnSearch 是 elasticsearch java 客户端中两个不同的类,用于不同的查询,支持不同的参数。

如果仍然偏好 KnnQuery,请务必使用 NativeQueryBuilder 中的 withQuery(co.elastic.clients.elasticsearch._types.query_dsl.Query query) 子句,在 query 子句中手动构建它。

弃用

移除

© . This site is unofficial and not affiliated with VMware.