Package org.nuxeo.elasticsearch.client
Class ESTransportClient
java.lang.Object
org.nuxeo.elasticsearch.client.ESTransportClient
- All Implemented Interfaces:
- AutoCloseable,- ESClient
- Since:
- 9.3
- 
Field SummaryFields
- 
Constructor SummaryConstructors
- 
Method SummaryModifier 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- 
clientprotected org.opensearch.client.Client client
 
- 
- 
Constructor Details- 
ESTransportClientpublic ESTransportClient(org.opensearch.client.Client client) 
 
- 
- 
Method Details- 
waitForYellowStatus- Specified by:
- waitForYellowStatusin interface- ESClient
 
- 
getHealthStatus- Specified by:
- getHealthStatusin interface- ESClient
 
- 
refresh
- 
flush
- 
optimize
- 
indexExists- Specified by:
- indexExistsin interface- ESClient
 
- 
mappingExists- Specified by:
- mappingExistsin interface- ESClient
 
- 
deleteIndex- Specified by:
- deleteIndexin interface- ESClient
 
- 
createIndex- Specified by:
- createIndexin interface- ESClient
 
- 
createMapping- Specified by:
- createMappingin interface- ESClient
 
- 
getMappingDescription copied from interface:ESClientReturns the mapping from elastic, exposed for testing purposes- Specified by:
- getMappingin interface- ESClient
 
- 
getNodesInfo- Specified by:
- getNodesInfoin interface- ESClient
 
- 
getNodesStats- Specified by:
- getNodesStatsin interface- ESClient
 
- 
aliasExists- Specified by:
- aliasExistsin interface- ESClient
 
- 
getFirstIndexForAliasDescription copied from interface:ESClientReturns the name of the index referenced by the alias. Returns null if the alias does not exists.- Specified by:
- getFirstIndexForAliasin interface- ESClient
 
- 
updateAlias- Specified by:
- updateAliasin interface- ESClient
 
- 
bulkpublic org.opensearch.action.bulk.BulkResponse bulk(org.opensearch.action.bulk.BulkRequest request) 
- 
deletepublic org.opensearch.action.delete.DeleteResponse delete(org.opensearch.action.delete.DeleteRequest request) 
- 
searchpublic org.opensearch.action.search.SearchResponse search(org.opensearch.action.search.SearchRequest request) 
- 
searchScrollpublic org.opensearch.action.search.SearchResponse searchScroll(org.opensearch.action.search.SearchScrollRequest request) - Specified by:
- searchScrollin interface- ESClient
 
- 
getpublic org.opensearch.action.get.GetResponse get(org.opensearch.action.get.GetRequest request) 
- 
indexpublic org.opensearch.action.index.IndexResponse index(org.opensearch.action.index.IndexRequest request) Description copied from interface:ESClientPerforms the indexing request.
- 
clearScrollpublic org.opensearch.action.search.ClearScrollResponse clearScroll(org.opensearch.action.search.ClearScrollRequest request) - Specified by:
- clearScrollin interface- ESClient
 
- 
bulkProcessorBuilderpublic 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 interface- ESClient
 
- 
closepublic void close()- Specified by:
- closein interface- AutoCloseable
 
 
-