3月30日,ElasticSearch官方发布了2.3.0版本。 版本主要针对Lucene 5.5.0开发,同时修复了大量的2.2版本的bug。 这次更新主要增加了三大特性:重建索引的API,通过查询API,和任务管理API。 1 | Reindex API:通过单个命令从建所有的索引文档。
|
1 | POST _reindex { "source" : { "index" : "my_old_index" }, "dest" : { "index" : "my_new_index" } }
|
1 | Update-by-Query API:通过从建所以我们得到了查询更新索引的状态。
|
例如: 1 | POST /twitter/_update_by_query ?conflicts=proceed
|
返回:
1 2 3 4 5 6 7 | {
"took" : 639,
"updated" : 1235,
"batches" : 13,
"version_conflicts" : 2,
"failures" : [ ]
}
|
增加了任务管理接口:任务管理接口可以检索当前在群集上一个或多个节点上执行的任务的信息。
例如: 1 2 3 | GET /_tasks
GET /_tasks ?nodes=nodeId1,nodeId2
GET /_tasks ?nodes=nodeId1,nodeId2&actions=cluster:*
|
下载地址: Source code (zip) Source code (tar.gz) |