博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
Elasticsearch 7.0变化
阅读量:2388 次
发布时间:2019-05-10

本文共 1490 字,大约阅读时间需要 4 分钟。

Elasticsearch 7.0变化

1、官方文档

2、High-level REST client 改变

(1)API methods accepting Header argument have been removed/已删除接受Header参数的API方法

All API methods accepting headers as a Header varargs argument, deprecated since 6.4, have been removed in favour of the newly introduced methods that accept instead a RequestOptions argument.

所有接受headers 作为Header varargs参数的API方法,自6.4以来已弃用,已被删除,以支持新引入的接受RequestOptions参数的方法。

In case you are not specifying any header, e.g. client.index(indexRequest) becomes client.index(indexRequest, RequestOptions.DEFAULT). In case you are specifying headers e.g. client.index(indexRequest, new Header(“name” “value”)) becomes client.index(indexRequest, RequestOptions.DEFAULT.toBuilder().addHeader(“name”, “value”).build());

如果您没有指定任何header,例如 client.index(indexRequest)变为client.index(indexRequest,RequestOptions.DEFAULT)。 如果您要指定header,例如 client.index(indexRequest, new Header("name" "value"))成为client.index(indexRequest, RequestOptions.DEFAULT.toBuilder().addHeader("name", "value").build());

(2)Cluster Health API default to cluster level /Cluster Health API默认为群集级别

The Cluster Health API used to default to shards level to ease migration from transport client that doesn’t support the level parameter and always returns information including indices and shards details. The level default value has been aligned with the Elasticsearch default level: cluster.

Cluster Health API用于默认为分片级别,以便于从不支持level参数的传输客户端迁移,并始终返回包括索引和分片详细信息在内的信息。 级别默认值已与Elasticsearch默认级别cluster对齐。

转载地址:http://vrvab.baihongyu.com/

你可能感兴趣的文章
Modifying SSH to Capture Login Credentials from Attackers
查看>>
nikto 2.1 coming
查看>>
How to own a Windows Domain
查看>>
Longcat – multi-protocol stress testing tool
查看>>
数据流0day原理+实践
查看>>
淺談以STIX實現網路威脅情報標準化框架
查看>>
Top IT management trends - the next 5 years
查看>>
推荐 OWASP - Transport Layer Protection Cheat Sheet
查看>>
AutoNessus v1.3.2 released
查看>>
hack tools
查看>>
rhel5中管理swap空间
查看>>
/proc filesystem allows bypassing directory permissions on Linux
查看>>
nginx dos
查看>>
RASP解决方案包括开源方案
查看>>
Linux下共享文件系统文件传输的简单设计(转载)
查看>>
点评Ubuntu下的文件安全删除工具
查看>>
数据可视化
查看>>
Security Ressources Sites
查看>>
mysql的比较运算
查看>>
Data Breach Report
查看>>