public class PluginClient extends Object
| Constructor and Description |
|---|
PluginClient(org.elasticsearch.client.Client client,
org.elasticsearch.common.util.concurrent.ThreadContext threadContext) |
| Modifier and Type | Method and Description |
|---|---|
void |
addCommonHeaders() |
boolean |
alias(Map<String,String> aliases)
Create an alias for a pattern
|
org.elasticsearch.action.admin.indices.create.CreateIndexResponse |
copyIndex(String index,
String target,
org.elasticsearch.common.settings.Settings settings,
String... types) |
org.elasticsearch.action.index.IndexResponse |
createDocument(String index,
String type,
String id,
String source) |
void |
deleteDocument(String index,
String type,
String id) |
boolean |
documentExists(String index,
String type,
String id) |
<T> T |
execute(Callable<T> callable)
Execute a callable action directly against Elasticsearch
bypassing authorization restrictions
|
org.elasticsearch.client.Client |
getClient() |
org.elasticsearch.action.get.GetResponse |
getDocument(String index,
String type,
String id) |
org.elasticsearch.action.admin.indices.get.GetIndexResponse |
getIndex(String... indicies) |
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.search.SearchResponse |
search(String[] indicies,
String[] types) |
org.elasticsearch.action.search.SearchResponse |
search(String index,
String type) |
org.elasticsearch.action.update.UpdateResponse |
updateDocument(String index,
String type,
String id,
String source) |
org.elasticsearch.action.admin.indices.settings.put.UpdateSettingsResponse |
updateSettings(String index,
org.elasticsearch.common.settings.Settings settings) |
public PluginClient(org.elasticsearch.client.Client client,
org.elasticsearch.common.util.concurrent.ThreadContext threadContext)
public org.elasticsearch.client.Client getClient()
public org.elasticsearch.action.update.UpdateResponse updateDocument(String index, String type, String id, String source)
public org.elasticsearch.action.search.SearchResponse search(String[] indicies, String[] types)
public org.elasticsearch.action.admin.indices.get.GetIndexResponse getIndex(String... indicies)
public org.elasticsearch.action.get.GetResponse getDocument(String index, String type, String id)
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 index, String target, org.elasticsearch.common.settings.Settings settings, String... types) throws InterruptedException, ExecutionException, IOException
public org.elasticsearch.action.admin.indices.settings.put.UpdateSettingsResponse updateSettings(String index, org.elasticsearch.common.settings.Settings settings)
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 lookuppublic boolean alias(Map<String,String> aliases)
aliases - a map of patterns to aliaspublic void addCommonHeaders()
public <T> T execute(Callable<T> callable)
Copyright © 2015–2018 Red Hat. All rights reserved.