Package io.camunda.search.test.utils
Class SearchClientAdapter
java.lang.Object
io.camunda.search.test.utils.SearchClientAdapter
-
Constructor Summary
ConstructorsConstructorDescriptionSearchClientAdapter(co.elastic.clients.elasticsearch.ElasticsearchClient elsClient, com.fasterxml.jackson.databind.ObjectMapper objectMapper) SearchClientAdapter(org.opensearch.client.opensearch.OpenSearchClient osClient, com.fasterxml.jackson.databind.ObjectMapper objectMapper) -
Method Summary
Modifier and TypeMethodDescription<T> TgetAllIndicesAsNode(String indexPrefix) com.fasterxml.jackson.databind.JsonNodegetIndexAsNode(String indexName) com.fasterxml.jackson.databind.JsonNodegetIndexTemplateAsNode(String templateName) com.fasterxml.jackson.databind.JsonNodegetPolicyAsNode(String policyName) voidrefresh()
-
Constructor Details
-
SearchClientAdapter
public SearchClientAdapter(co.elastic.clients.elasticsearch.ElasticsearchClient elsClient, com.fasterxml.jackson.databind.ObjectMapper objectMapper) -
SearchClientAdapter
public SearchClientAdapter(org.opensearch.client.opensearch.OpenSearchClient osClient, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
-
-
Method Details
-
getIndexAsNode
- Throws:
IOException
-
getAllIndicesAsNode
public Map<String,com.fasterxml.jackson.databind.JsonNode> getAllIndicesAsNode(String indexPrefix) throws IOException - Throws:
IOException
-
getPolicyAsNode
public com.fasterxml.jackson.databind.JsonNode getPolicyAsNode(String policyName) throws IOException - Throws:
IOException
-
getIndexTemplateAsNode
public com.fasterxml.jackson.databind.JsonNode getIndexTemplateAsNode(String templateName) throws IOException - Throws:
IOException
-
get
- Throws:
IOException
-
index
- Throws:
IOException
-
refresh
- Throws:
IOException
-