public class ESTransportClient extends Object implements ESClient
| Modifier and Type | Field and Description |
|---|---|
protected org.elasticsearch.client.Client |
client |
| Constructor and Description |
|---|
ESTransportClient(org.elasticsearch.client.Client client) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
aliasExists(String aliasName) |
org.elasticsearch.action.bulk.BulkResponse |
bulk(org.elasticsearch.action.bulk.BulkRequest request) |
org.elasticsearch.action.bulk.BulkProcessor.Builder |
bulkProcessorBuilder(org.elasticsearch.action.bulk.BulkProcessor.Listener listener)
Creates an elasticsearch BulkProcessor builder.
|
org.elasticsearch.action.search.ClearScrollResponse |
clearScroll(org.elasticsearch.action.search.ClearScrollRequest request) |
void |
close() |
void |
createIndex(String indexName,
String jsonSettings) |
void |
createMapping(String indexName,
String type,
String jsonMapping) |
org.elasticsearch.action.delete.DeleteResponse |
delete(org.elasticsearch.action.delete.DeleteRequest request) |
void |
deleteIndex(String indexName,
int timeoutSecond) |
void |
flush(String indexName) |
org.elasticsearch.action.get.GetResponse |
get(org.elasticsearch.action.get.GetRequest request) |
String |
getFirstIndexForAlias(String aliasName)
Returns the name of the index referenced by the alias.
|
org.elasticsearch.cluster.health.ClusterHealthStatus |
getHealthStatus(String[] indexNames) |
String |
getNodesInfo() |
String |
getNodesStats() |
org.elasticsearch.action.index.IndexResponse |
index(org.elasticsearch.action.index.IndexRequest request)
Performs the indexing request.
|
boolean |
indexExists(String indexName) |
boolean |
mappingExists(String indexName,
String type) |
void |
optimize(String indexName) |
void |
refresh(String indexName) |
org.elasticsearch.action.search.SearchResponse |
search(org.elasticsearch.action.search.SearchRequest request) |
org.elasticsearch.action.search.SearchResponse |
searchScroll(org.elasticsearch.action.search.SearchScrollRequest request) |
void |
updateAlias(String aliasName,
String indexName) |
boolean |
waitForYellowStatus(String[] indexNames,
int timeoutSecond) |
protected org.elasticsearch.client.Client client
public ESTransportClient(org.elasticsearch.client.Client client)
public boolean waitForYellowStatus(String[] indexNames, int timeoutSecond)
waitForYellowStatus in interface ESClientpublic org.elasticsearch.cluster.health.ClusterHealthStatus getHealthStatus(String[] indexNames)
getHealthStatus in interface ESClientpublic boolean indexExists(String indexName)
indexExists in interface ESClientpublic boolean mappingExists(String indexName, String type)
mappingExists in interface ESClientpublic void deleteIndex(String indexName, int timeoutSecond)
deleteIndex in interface ESClientpublic void createIndex(String indexName, String jsonSettings)
createIndex in interface ESClientpublic void createMapping(String indexName, String type, String jsonMapping)
createMapping in interface ESClientpublic String getNodesInfo()
getNodesInfo in interface ESClientpublic String getNodesStats()
getNodesStats in interface ESClientpublic boolean aliasExists(String aliasName)
aliasExists in interface ESClientpublic String getFirstIndexForAlias(String aliasName)
ESClientgetFirstIndexForAlias in interface ESClientpublic void updateAlias(String aliasName, String indexName)
updateAlias in interface ESClientpublic org.elasticsearch.action.bulk.BulkResponse bulk(org.elasticsearch.action.bulk.BulkRequest request)
public org.elasticsearch.action.delete.DeleteResponse delete(org.elasticsearch.action.delete.DeleteRequest request)
public org.elasticsearch.action.search.SearchResponse search(org.elasticsearch.action.search.SearchRequest request)
public org.elasticsearch.action.search.SearchResponse searchScroll(org.elasticsearch.action.search.SearchScrollRequest request)
searchScroll in interface ESClientpublic org.elasticsearch.action.get.GetResponse get(org.elasticsearch.action.get.GetRequest request)
public org.elasticsearch.action.index.IndexResponse index(org.elasticsearch.action.index.IndexRequest request)
ESClientpublic org.elasticsearch.action.search.ClearScrollResponse clearScroll(org.elasticsearch.action.search.ClearScrollRequest request)
clearScroll in interface ESClientpublic org.elasticsearch.action.bulk.BulkProcessor.Builder bulkProcessorBuilder(org.elasticsearch.action.bulk.BulkProcessor.Listener listener)
ESClientbulkProcessorBuilder in interface ESClientpublic void close()
close in interface AutoCloseableCopyright © 2019 Nuxeo. All rights reserved.