-
Method Summary
boolean
org.opensearch.action.bulk.BulkResponse
bulk(org.opensearch.action.bulk.BulkRequest request)
org.opensearch.action.search.ClearScrollResponse
clearScroll(org.opensearch.action.search.ClearScrollRequest request)
void
void
default void
Drops the index and wait for the action to be effective until 5 minutes.
void
void
org.opensearch.action.get.GetResponse
get(org.opensearch.action.get.GetRequest request)
Returns the name of the index referenced by the alias.
Returns the mapping from elastic, exposed for testing purposes
org.opensearch.action.index.IndexResponse
index(org.opensearch.action.index.IndexRequest request)
boolean
boolean
boolean
void
void
org.opensearch.action.search.SearchResponse
scroll(org.opensearch.action.search.SearchScrollRequest request)
org.opensearch.action.search.SearchResponse
search(org.opensearch.action.search.SearchRequest request)
void
boolean
-
Method Details
-
getId
- Returns:
- The client id
-
isReady
boolean isReady()
- Returns:
- Whether the targeted OpenSearch is ready or not (its status is at least
ClusterHealthStatus.YELLOW
- Since:
- 2025.0
-
-
refresh
void refresh(String indexName)
-
-
optimize
void optimize(String indexName)
-
-
indexExists
boolean indexExists(String indexName)
-
dropIndex
default void dropIndex(String indexName)
Drops the index and wait for the action to be effective until 5 minutes.
-
-
-
mappingExists
boolean mappingExists(String indexName)
-
getMapping
Returns the mapping from elastic, exposed for testing purposes
- Since:
- 2021.17
-
aliasExists
boolean aliasExists(String aliasName)
-
getFirstIndexForAlias
Returns the name of the index referenced by the alias. Returns null if the alias does not exists.
-
-
index
org.opensearch.action.index.IndexResponse index(org.opensearch.action.index.IndexRequest request)
-
bulk
org.opensearch.action.bulk.BulkResponse bulk(org.opensearch.action.bulk.BulkRequest request)
-
get
org.opensearch.action.get.GetResponse get(org.opensearch.action.get.GetRequest request)
-
search
org.opensearch.action.search.SearchResponse search(org.opensearch.action.search.SearchRequest request)
-
-