Package org.nuxeo.elasticsearch.api
Interface ESClient
- All Superinterfaces:
AutoCloseable
- All Known Implementing Classes:
ESRestClient
,ESTransportClient
- Since:
- 9.3
-
Method Summary
Modifier and TypeMethodDescriptionboolean
aliasExists
(String aliasName) org.opensearch.action.bulk.BulkResponse
bulk
(org.opensearch.action.bulk.BulkRequest request) org.opensearch.action.bulk.BulkProcessor.Builder
bulkProcessorBuilder
(org.opensearch.action.bulk.BulkProcessor.Listener listener) Creates an elasticsearch BulkProcessor builder.org.opensearch.action.search.ClearScrollResponse
clearScroll
(org.opensearch.action.search.ClearScrollRequest request) void
createIndex
(String indexName, String jsonSettings) void
createMapping
(String indexName, String type, String jsonMapping) org.opensearch.action.delete.DeleteResponse
delete
(org.opensearch.action.delete.DeleteRequest request) void
deleteIndex
(String indexName, int timeoutSecond) void
org.opensearch.action.get.GetResponse
get
(org.opensearch.action.get.GetRequest request) getFirstIndexForAlias
(String aliasName) Returns the name of the index referenced by the alias.org.opensearch.cluster.health.ClusterHealthStatus
getHealthStatus
(String[] indexNames) getMapping
(String indexName) Returns the mapping from elastic, exposed for testing purposesorg.opensearch.action.index.IndexResponse
index
(org.opensearch.action.index.IndexRequest request) Performs the indexing request.boolean
indexExists
(String indexName) boolean
mappingExists
(String indexName, String type) void
void
org.opensearch.action.search.SearchResponse
search
(org.opensearch.action.search.SearchRequest request) org.opensearch.action.search.SearchResponse
searchScroll
(org.opensearch.action.search.SearchScrollRequest request) void
updateAlias
(String aliasName, String indexName) boolean
waitForYellowStatus
(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
-