Skip to content

Commit 8c8efca

Browse files
committed
client.md
1 parent 0a81576 commit 8c8efca

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

client.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
## Client
2+
3+
Java 客户端连接 Elasticsearch
4+
5+
一个是`TransportClient`,一个是`NodeClient`,还有一个`XPackTransportClient`
6+
7+
- TransportClient:
8+
作为一个外部访问者,请求ES的集群,对于集群而言,它是一个外部因素。
9+
10+
11+
- NodeClient
12+
13+
作为ES集群的一个节点,它是ES中的一环,其他的节点对它是感知的。
14+
15+
- XPackTransportClient:
16+
17+
服务安装了 `x-pack` 插件

0 commit comments

Comments
 (0)