红联Linux门户
Linux帮助

ElasticSearch 2.3.0发布,分布式搜索引擎

发布时间:2016-03-31 11:54:07来源:红联作者:baihuo
3月30日,ElasticSearch官方发布了2.3.0版本。

版本主要针对Lucene 5.5.0开发,同时修复了大量的2.2版本的bug。

这次更新主要增加了三大特性:重建索引的API,通过查询API,和任务管理API。

Reindex API:通过单个命令从建所有的索引文档。

POST _reindex { "source": { "index": "my_old_index" }, "dest": { "index": "my_new_index" } }

Update-by-Query API:通过从建所以我们得到了查询更新索引的状态。

例如:

POST /twitter/_update_by_query?conflicts=proceed

返回:

{
"took" : 639,
"updated": 1235,
"batches": 13,
"version_conflicts": 2,
"failures" : [ ]
}

增加了任务管理接口:任务管理接口可以检索当前在群集上一个或多个节点上执行的任务的信息。

例如:

GET /_tasks
GET /_tasks?nodes=nodeId1,nodeId2
GET /_tasks?nodes=nodeId1,nodeId2&actions=cluster:*

下载地址:https://github.com/elastic/elasticsearch/archive/v2.3.0.tar.gz

来自:开源中国社区
文章评论

共有 0 条评论