Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit e6b2330

Browse files
author
admin
committed
更新文档
1 parent 7ee2e6d commit e6b2330

File tree

4 files changed

+13
-3
lines changed

4 files changed

+13
-3
lines changed

‎README.md‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ github地址:[https://github.com/quanke/elasticsearch-java](https://github.com
1212

1313
gitee 地址:[https://gitee.com/quanke/elasticsearch-java](https://gitee.com/quanke/elasticsearch-java)
1414

15+
配套示例代码:[https://gitee.com/quanke/elasticsearch-java-study](https://gitee.com/quanke/elasticsearch-java-study)
16+
17+
1518
编辑:[http://quanke.name](http://quanke.name)
1619

1720
编辑整理辛苦,还望大神们点一下star ,抚平我虚荣的心

‎client.md‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ Java 客户端连接 Elasticsearch
55
一个是`TransportClient`,一个是`NodeClient`,还有一个`XPackTransportClient`
66

77
- TransportClient:
8+
89
作为一个外部访问者,请求ES的集群,对于集群而言,它是一个外部因素。
910

1011

@@ -20,4 +21,7 @@ Java 客户端连接 Elasticsearch
2021
2122
> TransportClient旨在被Java高级REST客户端取代,该客户端执行HTTP请求而不是序列化的Java请求。 在即将到来的Elasticsearch版本中将不赞成使用TransportClient,建议使用Java高级REST客户端。
2223
23-
上面的警告比较尴尬,但是在 5xx版本中使用还是没有问题的,可能使用rest 客户端兼容性更好做一些,我会继续跟进java rest 客户端
24+
25+
> 上面的警告比较尴尬,但是在 5xx版本中使用还是没有问题的,可能使用rest 客户端兼容性更好做一些。
26+
27+
[Elasticsearch Java Rest API 手册](https://www.gitbook.com/book/quanke/elasticsearch-java-rest)

‎dependency.md‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@
66
Elasticsearch Java API包已经上传到 [Maven Central](http://search.maven.org/#search%7Cga%7C1%7Ca%3A%22elasticsearch%22)
77

88
`pom.xml`文件中增加:
9-
> 版本号选择自己合适的。
9+
10+
> transport 版本号最好就是与Elasticsearch版本号一致。
1011
1112
```
1213
<dependency>

‎document-apis/get-api.md‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
11

22
### Get API
3-
get api可以通过id查看文档:
3+
4+
根据id查看文档:
45

56
```
67
GetResponse response = client.prepareGet("twitter", "tweet", "1").get();
78
89
```
10+
911
更多请查看 [rest get API](https://www.elastic.co/guide/en/elasticsearch/reference/5.6/docs-get.html) 文档
1012

1113
#### 配置线程

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /