Package org.nuxeo.elasticsearch.client
Class ESTransportClient
java.lang.Object
org.nuxeo.elasticsearch.client.ESTransportClient
- All Implemented Interfaces:
AutoCloseable,ESClient
- Since:
- 9.3
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanaliasExists(String aliasName) org.opensearch.action.bulk.BulkResponsebulk(org.opensearch.action.bulk.BulkRequest request) org.opensearch.action.bulk.BulkProcessor.BuilderbulkProcessorBuilder(org.opensearch.action.bulk.BulkProcessor.Listener listener) Creates an elasticsearch BulkProcessor builder.org.opensearch.action.search.ClearScrollResponseclearScroll(org.opensearch.action.search.ClearScrollRequest request) voidclose()voidcreateIndex(String indexName, String jsonSettings) voidcreateMapping(String indexName, String type, String jsonMapping) org.opensearch.action.delete.DeleteResponsedelete(org.opensearch.action.delete.DeleteRequest request) voiddeleteIndex(String indexName, int timeoutSecond) voidorg.opensearch.action.get.GetResponseget(org.opensearch.action.get.GetRequest request) getFirstIndexForAlias(String aliasName) Returns the name of the index referenced by the alias.org.opensearch.cluster.health.ClusterHealthStatusgetHealthStatus(String[] indexNames) getMapping(String indexName) Returns the mapping from elastic, exposed for testing purposesorg.opensearch.action.index.IndexResponseindex(org.opensearch.action.index.IndexRequest request) Performs the indexing request.booleanindexExists(String indexName) booleanmappingExists(String indexName, String type) voidvoidorg.opensearch.action.search.SearchResponsesearch(org.opensearch.action.search.SearchRequest request) org.opensearch.action.search.SearchResponsesearchScroll(org.opensearch.action.search.SearchScrollRequest request) voidupdateAlias(String aliasName, String indexName) booleanwaitForYellowStatus(String[] indexNames, int timeoutSecond)
-
Field Details
-
client
protected org.opensearch.client.Client client
-
-
Constructor Details
-
ESTransportClient
public ESTransportClient(org.opensearch.client.Client client)
-
-
Method Details
-
waitForYellowStatus
- Specified by:
waitForYellowStatusin interfaceESClient
-
getHealthStatus
- Specified by:
getHealthStatusin interfaceESClient
-
refresh
-
flush
-
optimize
-
indexExists
- Specified by:
indexExistsin interfaceESClient
-
mappingExists
- Specified by:
mappingExistsin interfaceESClient
-
deleteIndex
- Specified by:
deleteIndexin interfaceESClient
-
createIndex
- Specified by:
createIndexin interfaceESClient
-
createMapping
- Specified by:
createMappingin interfaceESClient
-
getMapping
Description copied from interface:ESClientReturns the mapping from elastic, exposed for testing purposes- Specified by:
getMappingin interfaceESClient
-
getNodesInfo
- Specified by:
getNodesInfoin interfaceESClient
-
getNodesStats
- Specified by:
getNodesStatsin interfaceESClient
-
aliasExists
- Specified by:
aliasExistsin interfaceESClient
-
getFirstIndexForAlias
Description copied from interface:ESClientReturns the name of the index referenced by the alias. Returns null if the alias does not exists.- Specified by:
getFirstIndexForAliasin interfaceESClient
-
updateAlias
- Specified by:
updateAliasin interfaceESClient
-
bulk
public org.opensearch.action.bulk.BulkResponse bulk(org.opensearch.action.bulk.BulkRequest request) -
delete
public org.opensearch.action.delete.DeleteResponse delete(org.opensearch.action.delete.DeleteRequest request) -
search
public org.opensearch.action.search.SearchResponse search(org.opensearch.action.search.SearchRequest request) -
searchScroll
public org.opensearch.action.search.SearchResponse searchScroll(org.opensearch.action.search.SearchScrollRequest request) - Specified by:
searchScrollin interfaceESClient
-
get
public org.opensearch.action.get.GetResponse get(org.opensearch.action.get.GetRequest request) -
index
public org.opensearch.action.index.IndexResponse index(org.opensearch.action.index.IndexRequest request) Description copied from interface:ESClientPerforms the indexing request. -
clearScroll
public org.opensearch.action.search.ClearScrollResponse clearScroll(org.opensearch.action.search.ClearScrollRequest request) - Specified by:
clearScrollin interfaceESClient
-
bulkProcessorBuilder
public org.opensearch.action.bulk.BulkProcessor.Builder bulkProcessorBuilder(org.opensearch.action.bulk.BulkProcessor.Listener listener) Description copied from interface:ESClientCreates an elasticsearch BulkProcessor builder.- Specified by:
bulkProcessorBuilderin interfaceESClient
-
close
public void close()- Specified by:
closein interfaceAutoCloseable
-