public interface ElasticSearchClient extends Closeable
| Modifier and Type | Method and Description |
|---|---|
void |
addAlias(String alias,
String index) |
void |
bulkRequest(List<ElasticSearchMutation> requests,
String ingestPipeline) |
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) |
ElasticSearchResponse |
search(String scrollId) |
ElasticSearchResponse |
search(String indexName,
String type,
Map<String,Object> request,
boolean useScroll) |
ElasticMajorVersion getMajorVersion()
void clusterHealthRequest(String timeout) throws IOException
IOExceptionboolean indexExists(String indexName) throws IOException
IOExceptionboolean isIndex(String indexName)
boolean isAlias(String aliasName)
void createIndex(String indexName, Map<String,Object> settings) throws IOException
IOExceptionMap getIndexSettings(String indexName) throws IOException
IOExceptionvoid createMapping(String indexName, String typeName, Map<String,Object> mapping) throws IOException
IOExceptionIndexMappings.IndexMapping getMapping(String indexName, String typeName) throws IOException
IOExceptionvoid deleteIndex(String indexName) throws IOException
IOExceptionvoid bulkRequest(List<ElasticSearchMutation> requests, String ingestPipeline) throws IOException
IOExceptionElasticSearchResponse search(String indexName, String type, Map<String,Object> request, boolean useScroll) throws IOException
IOExceptionElasticSearchResponse search(String scrollId) throws IOException
IOExceptionvoid deleteScroll(String scrollId) throws IOException
IOExceptionvoid addAlias(String alias, String index) throws IOException
IOExceptionCopyright © 2012–2020. All rights reserved.