elasticsearch
简介
Elasticsearch客户端
组件接口
Client.gs
函数原型 | 函数作用 |
---|---|
map cluster_info(map opts = nil) | Get cluster info. |
mixed index(string index, mixed body = nil, map opts = nil) | Index a document. |
map bulk(string index = nil, mixed body = nil, map opts = nil) | Performs multiple indexing or delete operations in a single API call. |
map search(string index = nil, map body = nil, map opts = nil) | Returns search hits that match the query defined in the request. |
mixed get(string index, string id, map opts = nil) | Retrieves the document with the specified ID from an index. |
mixed indices_create(string index, mixed body = nil, map opts = nil) | Creates a new index. |
mixed indices_delete(string index, map opts = nil) | Deletes an index. |