Can not uses "searchAsync"

See the guide below to implement searchAsync.
Search API

However, I get the following error.

The method searchAsync(SearchRequest, RequestOptions, ActionListener<SearchResponse>) from the type RestHighLevelClient refers to the missing type Cancellable

Below is the API I used.

		ActionListener<SearchResponse> listener = new ActionListener<SearchResponse>() {
		    public void onResponse(SearchResponse searchResponse) {
		    public void onFailure(Exception e) {
		elasticClient.searchAsync(searchRequest, RequestOptions.DEFAULT, listener);

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.