public class RestElasticSearchClient extends Object implements ElasticSearchClient
| Modifier and Type | Field and Description |
|---|---|
static String |
INCLUDE_TYPE_NAME_PARAMETER |
| Constructor and Description |
|---|
RestElasticSearchClient(org.elasticsearch.client.RestClient delegate,
int scrollKeepAlive,
boolean useMappingTypesForES7) |
public static final String INCLUDE_TYPE_NAME_PARAMETER
public RestElasticSearchClient(org.elasticsearch.client.RestClient delegate,
int scrollKeepAlive,
boolean useMappingTypesForES7)
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 createStoredScript(String scriptName, Map<String,Object> script) throws IOException
createStoredScript in interface ElasticSearchClientIOExceptionpublic ESScriptResponse getStoredScript(String scriptName) throws IOException
getStoredScript in interface ElasticSearchClientIOExceptionpublic void createIndex(String indexName, Map<String,Object> settings) throws IOException
createIndex in interface ElasticSearchClientIOExceptionpublic void updateIndexSettings(String indexName, Map<String,Object> settings) throws IOException
updateIndexSettings in interface ElasticSearchClientIOExceptionpublic void updateClusterSettings(Map<String,Object> settings) throws IOException
updateClusterSettings 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 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 void setRetryOnConflict(Integer retryOnConflict)
public long countTotal(String indexName, Map<String,Object> requestData) throws IOException
countTotal in interface ElasticSearchClientIOExceptionpublic RestSearchResponse search(String indexName, Map<String,Object> requestData, 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–2023. All rights reserved.