public class RestElasticSearchClient extends Object implements ElasticSearchClient
| Constructor and Description |
|---|
RestElasticSearchClient(org.elasticsearch.client.RestClient delegate,
int scrollKeepAlive) |
| Modifier and Type | Method and Description |
|---|---|
void |
addAlias(String alias,
String index) |
void |
bulkRequest(List<ElasticSearchMutation> requests,
String ingestPipeline) |
void |
close() |
void |
clusterHealthRequest(String timeout) |
void |
createIndex(String indexName,
Map<String,Object> settings) |
void |
createMapping(String indexName,
String typeName,
Map<String,Object> mapping) |
void |
deleteIndex(String indexName) |
void |
deleteScroll(String scrollId) |
Map |
getIndexSettings(String indexName) |
ElasticMajorVersion |
getMajorVersion() |
IndexMappings.IndexMapping |
getMapping(String indexName,
String typeName) |
boolean |
indexExists(String indexName) |
boolean |
isAlias(String aliasName) |
boolean |
isIndex(String indexName) |
RestSearchResponse |
search(String scrollId) |
RestSearchResponse |
search(String indexName,
String type,
Map<String,Object> request,
boolean useScroll) |
void |
setBulkRefresh(String bulkRefresh) |
public RestElasticSearchClient(org.elasticsearch.client.RestClient delegate,
int scrollKeepAlive)
public void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionpublic ElasticMajorVersion getMajorVersion()
getMajorVersion in interface ElasticSearchClientpublic void clusterHealthRequest(String timeout) throws IOException
clusterHealthRequest in interface ElasticSearchClientIOExceptionpublic boolean indexExists(String indexName) throws IOException
indexExists in interface ElasticSearchClientIOExceptionpublic boolean isIndex(String indexName)
isIndex in interface ElasticSearchClientpublic boolean isAlias(String aliasName)
isAlias in interface ElasticSearchClientpublic void createIndex(String indexName, Map<String,Object> settings) throws IOException
createIndex in interface ElasticSearchClientIOExceptionpublic void addAlias(String alias, String index) throws IOException
addAlias in interface ElasticSearchClientIOExceptionpublic Map getIndexSettings(String indexName) throws IOException
getIndexSettings in interface ElasticSearchClientIOExceptionpublic void createMapping(String indexName, String typeName, Map<String,Object> mapping) throws IOException
createMapping in interface ElasticSearchClientIOExceptionpublic IndexMappings.IndexMapping getMapping(String indexName, String typeName) throws IOException
getMapping in interface ElasticSearchClientIOExceptionpublic void deleteIndex(String indexName) throws IOException
deleteIndex in interface ElasticSearchClientIOExceptionpublic void bulkRequest(List<ElasticSearchMutation> requests, String ingestPipeline) throws IOException
bulkRequest in interface ElasticSearchClientIOExceptionpublic RestSearchResponse search(String indexName, String type, Map<String,Object> request, boolean useScroll) throws IOException
search in interface ElasticSearchClientIOExceptionpublic RestSearchResponse search(String scrollId) throws IOException
search in interface ElasticSearchClientIOExceptionpublic void deleteScroll(String scrollId) throws IOException
deleteScroll in interface ElasticSearchClientIOExceptionpublic void setBulkRefresh(String bulkRefresh)
Copyright © 2012–2020. All rights reserved.