public class ElasticSearchClient extends Object implements Client, HealthCheckable
| Constructor and Description |
|---|
ElasticSearchClient(String clusterNodes,
String protocol,
String trustStorePath,
String trustStorePass,
String user,
String password,
Function<String,String> indexNameConverter,
int connectTimeout,
int socketTimeout,
int numHttpClientThread) |
public static final String TYPE
public void registerChecker(HealthChecker healthChecker)
HealthCheckableregisterChecker in interface HealthCheckablehealthChecker - HealthChecker to be registered.public boolean createIndex(String indexName)
public Collection<String> retrievalIndexByAliases(String alias)
public boolean deleteByIndexName(String indexName)
retrievalIndexByAliases(String) or some other method and it already contains namespace.
Then you should delete the index by this method, this method will no longer concatenate
namespace.
https://github.com/apache/skywalking/pull/3017public boolean isExistsIndex(String indexName)
public Optional<IndexTemplate> getTemplate(String name)
public boolean isExistsTemplate(String indexName)
public boolean createOrUpdateTemplate(String indexName, Map<String,Object> settings, Mappings mapping, int order)
public boolean deleteTemplate(String indexName)
public SearchResponse search(Supplier<String[]> indices, Search search)
public SearchResponse search(String indexName, Search search)
public SearchResponse ids(String indexName, Iterable<String> ids)
public IndexRequestWrapper prepareInsert(String indexName, String id, Map<String,Object> source)
public UpdateRequestWrapper prepareUpdate(String indexName, String id, Map<String,Object> source)
public BulkProcessor createBulkProcessor(int bulkActions, int flushInterval, int concurrentRequests)
Copyright © 2021 The Apache Software Foundation. All rights reserved.