Created
July 27, 2016 09:42
-
-
Save anonymous/c5c9008e3ad17d0db0dca44ad11290a3 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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