@Service @ConditionalOnBean(value=ElasticsearchConfiguration.class) public class ElasticService extends Object
Constructor and Description |
---|
ElasticService(ElasticsearchConfiguration elasticsearchConfiguration) |
Modifier and Type | Method and Description |
---|---|
void |
deleteOne(ElasticsearchConfiguration.Cluster.Type clusterType,
String index,
String id) |
org.elasticsearch.action.search.SearchResponse |
getAll(ElasticsearchConfiguration.Cluster.Type clusterType,
String indices) |
org.elasticsearch.client.RestHighLevelClient |
getClient(ElasticsearchConfiguration.Cluster.Type clusterType) |
org.thales.punch.settings.api.SettingsMapBuilder |
getOne(ElasticsearchConfiguration.Cluster.Type clusterType,
String index,
String id) |
org.elasticsearch.action.index.IndexResponse |
insertOne(ElasticsearchConfiguration.Cluster.Type clusterType,
String index,
String doc) |
org.elasticsearch.action.search.SearchResponse |
search(ElasticsearchConfiguration.Cluster.Type clusterType,
org.elasticsearch.action.search.SearchRequest request) |
public ElasticService(ElasticsearchConfiguration elasticsearchConfiguration)
public org.elasticsearch.client.RestHighLevelClient getClient(ElasticsearchConfiguration.Cluster.Type clusterType)
public org.elasticsearch.action.index.IndexResponse insertOne(ElasticsearchConfiguration.Cluster.Type clusterType, String index, String doc) throws IOException
IOException
public org.thales.punch.settings.api.SettingsMapBuilder getOne(ElasticsearchConfiguration.Cluster.Type clusterType, String index, String id) throws IOException
IOException
public void deleteOne(ElasticsearchConfiguration.Cluster.Type clusterType, String index, String id)
public org.elasticsearch.action.search.SearchResponse getAll(ElasticsearchConfiguration.Cluster.Type clusterType, String indices)
public org.elasticsearch.action.search.SearchResponse search(ElasticsearchConfiguration.Cluster.Type clusterType, org.elasticsearch.action.search.SearchRequest request) throws IOException
IOException
Copyright © 2023. All rights reserved.