Package org.nuxeo.elasticsearch.api
Interface ESClient
- All Superinterfaces:
AutoCloseable
- All Known Implementing Classes:
ESRestClient,ESTransportClient
- Since:
- 9.3
-
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) 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) Methods inherited from interface java.lang.AutoCloseable
close
-
Method Details
-
waitForYellowStatus
-
getHealthStatus
-
refresh
-
flush
-
optimize
-
indexExists
-
mappingExists
-
deleteIndex
-
createIndex
-
createMapping
-
getMapping
Returns the mapping from elastic, exposed for testing purposes- Since:
- 2021.17
-
getNodesInfo
String getNodesInfo() -
getNodesStats
String getNodesStats() -
aliasExists
-
getFirstIndexForAlias
Returns the name of the index referenced by the alias. Returns null if the alias does not exists. -
updateAlias
-
bulk
org.opensearch.action.bulk.BulkResponse bulk(org.opensearch.action.bulk.BulkRequest request) -
delete
org.opensearch.action.delete.DeleteResponse delete(org.opensearch.action.delete.DeleteRequest request) -
search
org.opensearch.action.search.SearchResponse search(org.opensearch.action.search.SearchRequest request) -
searchScroll
org.opensearch.action.search.SearchResponse searchScroll(org.opensearch.action.search.SearchScrollRequest request) -
get
org.opensearch.action.get.GetResponse get(org.opensearch.action.get.GetRequest request) -
index
org.opensearch.action.index.IndexResponse index(org.opensearch.action.index.IndexRequest request) Performs the indexing request.- Throws:
ConcurrentUpdateException- if a more recent version of the document exits.
-
clearScroll
org.opensearch.action.search.ClearScrollResponse clearScroll(org.opensearch.action.search.ClearScrollRequest request) -
bulkProcessorBuilder
org.opensearch.action.bulk.BulkProcessor.Builder bulkProcessorBuilder(org.opensearch.action.bulk.BulkProcessor.Listener listener) Creates an elasticsearch BulkProcessor builder.- Since:
- 10.3
-