Skip to content

add support for refreshAsync into ElasticsearchRestTemplate [DATAES-602] #1174

@spring-projects-issues

Description

@spring-projects-issues

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

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions