Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

modules/indices/thrift.asciidoc #156

Open
wants to merge 1 commit into
base: cn
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 6 additions & 14 deletions docs/reference/modules/thrift.asciidoc
Original file line number Diff line number Diff line change
@@ -1,25 +1,17 @@
[[modules-thrift]]
== Thrift

The https://thrift.apache.org/[thrift] transport module allows to expose the REST interface of
Elasticsearch using thrift. Thrift should provide better performance
over http. Since thrift provides both the wire protocol and the
transport, it should make using Elasticsearch more efficient (though it has limited
documentation).
https://thrift.apache.org/[thrift] 传输模块允许使用 thrift 来暴露 Elasticsearch 的 REST 接口。thrift应能针对 http 提供更好的性能。因为 thrift 提供了有线协议和传输,它应该可使得使用 Elasticsearch 更有效(尽管它限制了文档)。

Using thrift requires installing the `transport-thrift` plugin, located
https://github.com/elastic/elasticsearch-transport-thrift[here].
使用 thrift 要求安装 `transport-thrift` 插件,在 https://github.com/elastic/elasticsearch-transport-thrift[此]。

The thrift
https://github.com/elastic/elasticsearch-transport-thrift/blob/master/elasticsearch.thrift[schema]
can be used to generate thrift clients.
thrift https://github.com/elastic/elasticsearch-transport-thrift/blob/master/elasticsearch.thrift[schema]可用来生成 shrift 客户端。

[cols="<,<",options="header",]
|=======================================================================
|Setting |Description
|`thrift.port` |The port to bind to. Defaults to 9500-9600
|设置 |描述
|`thrift.port` |绑定的端口。默认为 9500-9600

|`thrift.frame` |Defaults to `-1`, which means no framing. Set to a
higher value to specify the frame size (like `15mb`).
|`thrift.frame` |默认为 `-1`,意味着没有框架。设为一个更大的值来指定框架的尺寸(如 `15mb`)。
|=======================================================================