Skip to content

Commit

Permalink
Changes
Browse files Browse the repository at this point in the history
  • Loading branch information
xuwujing committed Jan 24, 2024
1 parent 1ce0ec0 commit b807ffe
Showing 1 changed file with 0 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -96,13 +96,10 @@ private static void multiGet() throws IOException {
request.add(new MultiGetRequest.Item("user", "userindex", "2"));
// 禁用源检索,默认启用
// request.add(new MultiGetRequest.Item("user", "userindex", "2").fetchSourceContext(FetchSourceContext.DO_NOT_FETCH_SOURCE));

// 同步构建
MultiGetResponse response = client.mget(request, RequestOptions.DEFAULT);

// 异步构建
// MultiGetResponse response2 = client.mgetAsync(request, RequestOptions.DEFAULT, listener);

/*
* 返回的MultiGetResponse包含在' getResponses中的MultiGetItemResponse的列表,其顺序与请求它们的顺序相同。
* 如果成功,MultiGetItemResponse包含GetResponse或MultiGetResponse。如果失败了就失败。
Expand Down

0 comments on commit b807ffe

Please sign in to comment.