public interface ElasticSearchClient extends Closeable
| Modifier and Type | Method and Description |
|---|---|
void |
addAlias(String alias,
String index) |
double |
avg(String indexName,
Map<String,Object> requestData,
String fieldName) |
void |
bulkRequest(List<ElasticSearchMutation> requests,
String ingestPipeline) |
void |
clearStore(String indexName,
String storeName) |
void |
clusterHealthRequest(String timeout) |
long |
countTotal(String indexName,
Map<String,Object> requestData) |
void |
createIndex(String indexName,
Map<String,Object> settings) |
void |
createMapping(String indexName,
String typeName,
Map<String,Object> mapping) |
void |
createStoredScript(String scriptName,
Map<String,Object> script) |
void |
deleteIndex(String indexName) |
void |
deleteScroll(String scrollId) |
Map |
getIndexSettings(String indexName) |
ElasticMajorVersion |
getMajorVersion() |
IndexMapping |
getMapping(String indexName,
String typeName) |
ESScriptResponse |
getStoredScript(String scriptName) |
boolean |
indexExists(String indexName) |
boolean |
isAlias(String aliasName) |
boolean |
isIndex(String indexName) |
Number |
max(String indexName,
Map<String,Object> requestData,
String fieldName,
Class<? extends Number> expectedType) |
Number |
min(String indexName,
Map<String,Object> requestData,
String fieldName,
Class<? extends Number> expectedType) |
ElasticSearchResponse |
search(String scrollId) |
ElasticSearchResponse |
search(String indexName,
Map<String,Object> request,
boolean useScroll) |
Number |
sum(String indexName,
Map<String,Object> requestData,
String fieldName,
Class<? extends Number> expectedType) |
void |
updateClusterSettings(Map<String,Object> settings) |
void |
updateIndexSettings(String indexName,
Map<String,Object> settings) |
ElasticMajorVersion getMajorVersion()
void clusterHealthRequest(String timeout) throws IOException
IOExceptionboolean indexExists(String indexName) throws IOException
IOExceptionboolean isIndex(String indexName)
boolean isAlias(String aliasName)
void createStoredScript(String scriptName, Map<String,Object> script) throws IOException
IOExceptionESScriptResponse getStoredScript(String scriptName) throws IOException
IOExceptionvoid createIndex(String indexName, Map<String,Object> settings) throws IOException
IOExceptionvoid updateIndexSettings(String indexName, Map<String,Object> settings) throws IOException
IOExceptionvoid updateClusterSettings(Map<String,Object> settings) throws IOException
IOExceptionMap getIndexSettings(String indexName) throws IOException
IOExceptionvoid createMapping(String indexName, String typeName, Map<String,Object> mapping) throws IOException
IOExceptionIndexMapping getMapping(String indexName, String typeName) throws IOException
IOExceptionvoid deleteIndex(String indexName) throws IOException
IOExceptionvoid clearStore(String indexName, String storeName) throws IOException
IOExceptionvoid bulkRequest(List<ElasticSearchMutation> requests, String ingestPipeline) throws IOException
IOExceptionlong countTotal(String indexName, Map<String,Object> requestData) throws IOException
IOExceptionNumber min(String indexName, Map<String,Object> requestData, String fieldName, Class<? extends Number> expectedType) throws IOException
IOExceptionNumber max(String indexName, Map<String,Object> requestData, String fieldName, Class<? extends Number> expectedType) throws IOException
IOExceptiondouble avg(String indexName, Map<String,Object> requestData, String fieldName) throws IOException
IOExceptionNumber sum(String indexName, Map<String,Object> requestData, String fieldName, Class<? extends Number> expectedType) throws IOException
IOExceptionElasticSearchResponse search(String indexName, 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–2023. All rights reserved.