Skip to content

Instantly share code, notes, and snippets.

Created July 27, 2016 09:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/c5c9008e3ad17d0db0dca44ad11290a3 to your computer and use it in GitHub Desktop.
Save anonymous/c5c9008e3ad17d0db0dca44ad11290a3 to your computer and use it in GitHub Desktop.
public class SecureSearchAction extends Action<SearchRequest, SearchResponse, SearchRequestBuilder> {
public static final SecureSearchAction INSTANCE = new SecureSearchAction();
public static final String NAME = "indices:data/read/secure_search";
private SecureSearchAction() {
super(NAME);
}
@Override
public SearchResponse newResponse() {
return new SearchResponse();
}
@Override
public SearchRequestBuilder newRequestBuilder(ElasticsearchClient client) {
return new SearchRequestBuilder(client, SearchAction.INSTANCE);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment