-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Closed
Labels
in: coreIssues in core supportIssues in core supporttype: enhancementA general enhancementA general enhancement
Milestone
Description
Fedor opened DATAES-602 and commented
Currently, ElasticsearchRestTemplate
has API with sync refreshes only:
public void refresh(String indexName) {
...
}
public <T> void refresh(Class<T> clazz) {
..
}
However, _ Java High Level REST Client_ supports also refreshAsync
, see https://www.elastic.co/guide/en/elasticsearch/client/java-rest/master/java-rest-high-refresh.html#java-rest-high-refresh-async
Executing a RefreshRequest can also be done in an asynchronous fashion so that the client can return directly. Users need to specify how the response or potential failures will be handled by passing the request and a listener to the asynchronous refresh method:
client.indices().refreshAsync(request, RequestOptions.DEFAULT, listener);
Pls, expose executing refreshes asynchronously in ElasticsearchRestTemplate
No further details from DATAES-602
Metadata
Metadata
Assignees
Labels
in: coreIssues in core supportIssues in core supporttype: enhancementA general enhancementA general enhancement