-
Notifications
You must be signed in to change notification settings - Fork 276
Closed
Labels
Area: SpecificationRelated to the API spec used to generate client codeRelated to the API spec used to generate client codeCategory: BugSomething isn't workingSomething isn't working
Description
Description
How can I pass request_cache=true while making a call with searchTemplate?
version: elasticsearch-java:8.13.4
Sample code below
private final ElasticsearchAsyncClient elasticsearchAsyncClient;
public SearchTemplateResponse<Object> getResponse(TemplateQuery templateQuery) {
var results = elasticsearchAsyncClient.searchTemplate(templateQuery.getRequest(), Object.class)
.exceptionally(e -> {
return null;
});
final var res = results.join();
return res;
}
Here templateQuery.getRequest() is typeof SearchTemplateRequest
Metadata
Metadata
Assignees
Labels
Area: SpecificationRelated to the API spec used to generate client codeRelated to the API spec used to generate client codeCategory: BugSomething isn't workingSomething isn't working