public class PluginClient extends Object
| Constructor and Description |
|---|
PluginClient(org.elasticsearch.client.Client client) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
alias(Map<String,String> aliases)
Create an alias for a pattern
|
org.elasticsearch.action.admin.indices.create.CreateIndexResponse |
copyIndex(String source,
String target,
String... types) |
org.elasticsearch.action.index.IndexResponse |
createDocument(String index,
String type,
String id,
String source) |
boolean |
documentExists(String index,
String type,
String id) |
org.elasticsearch.action.admin.indices.get.GetIndexResponse |
getIndices(String... indices) |
Set<String> |
getIndicesForAlias(String alias)
Retrieve the set of indices for a given alias
|
boolean |
indexExists(String index) |
org.elasticsearch.action.admin.indices.refresh.RefreshResponse |
refreshIndices(String... indices) |
org.elasticsearch.action.update.UpdateResponse |
update(String index,
String type,
String id,
String source) |
public org.elasticsearch.action.update.UpdateResponse update(String index, String type, String id, String source)
public org.elasticsearch.action.index.IndexResponse createDocument(String index, String type, String id, String source)
public org.elasticsearch.action.admin.indices.get.GetIndexResponse getIndices(String... indices) throws InterruptedException, ExecutionException
public org.elasticsearch.action.admin.indices.create.CreateIndexResponse copyIndex(String source, String target, String... types) throws InterruptedException, ExecutionException, IOException
public org.elasticsearch.action.admin.indices.refresh.RefreshResponse refreshIndices(String... indices)
public boolean indexExists(String index)
public Set<String> getIndicesForAlias(String alias)
alias - The alias to lookupCopyright © 2015–2018 Red Hat. All rights reserved.