| Constructor and Description |
|---|
ElasticSearchClient(String clusterNodes,
NameSpace namespace) |
| Modifier and Type | Method and Description |
|---|---|
org.elasticsearch.action.bulk.BulkProcessor |
createBulkProcessor(int bulkActions,
int bulkSize,
int flushInterval,
int concurrentRequests) |
boolean |
createIndex(String indexName,
org.elasticsearch.common.settings.Settings settings,
org.elasticsearch.common.xcontent.XContentBuilder mappingBuilder) |
int |
delete(String indexName,
String timeBucketColumnName,
long endTimeBucket) |
boolean |
deleteIndex(String indexName) |
void |
forceInsert(String indexName,
String id,
org.elasticsearch.common.xcontent.XContentBuilder source) |
void |
forceUpdate(String indexName,
String id,
org.elasticsearch.common.xcontent.XContentBuilder source) |
void |
forceUpdate(String indexName,
String id,
org.elasticsearch.common.xcontent.XContentBuilder source,
long version) |
org.elasticsearch.action.get.GetResponse |
get(String indexName,
String id) |
void |
initialize() |
boolean |
isExistsIndex(String indexName) |
org.elasticsearch.action.get.MultiGetResponse |
multiGet(String indexName,
List<String> ids) |
org.elasticsearch.action.index.IndexRequest |
prepareInsert(String indexName,
String id,
org.elasticsearch.common.xcontent.XContentBuilder source) |
org.elasticsearch.action.update.UpdateRequest |
prepareUpdate(String indexName,
String id,
org.elasticsearch.common.xcontent.XContentBuilder source) |
org.elasticsearch.action.search.SearchResponse |
search(String indexName,
org.elasticsearch.search.builder.SearchSourceBuilder searchSourceBuilder) |
void |
shutdown() |
public void initialize()
initialize in interface Clientpublic boolean createIndex(String indexName, org.elasticsearch.common.settings.Settings settings, org.elasticsearch.common.xcontent.XContentBuilder mappingBuilder) throws IOException
IOExceptionpublic boolean deleteIndex(String indexName) throws IOException
IOExceptionpublic boolean isExistsIndex(String indexName) throws IOException
IOExceptionpublic org.elasticsearch.action.search.SearchResponse search(String indexName, org.elasticsearch.search.builder.SearchSourceBuilder searchSourceBuilder) throws IOException
IOExceptionpublic org.elasticsearch.action.get.GetResponse get(String indexName, String id) throws IOException
IOExceptionpublic org.elasticsearch.action.get.MultiGetResponse multiGet(String indexName, List<String> ids) throws IOException
IOExceptionpublic void forceInsert(String indexName, String id, org.elasticsearch.common.xcontent.XContentBuilder source) throws IOException
IOExceptionpublic void forceUpdate(String indexName, String id, org.elasticsearch.common.xcontent.XContentBuilder source, long version) throws IOException
IOExceptionpublic void forceUpdate(String indexName, String id, org.elasticsearch.common.xcontent.XContentBuilder source) throws IOException
IOExceptionpublic org.elasticsearch.action.index.IndexRequest prepareInsert(String indexName, String id, org.elasticsearch.common.xcontent.XContentBuilder source)
public org.elasticsearch.action.update.UpdateRequest prepareUpdate(String indexName, String id, org.elasticsearch.common.xcontent.XContentBuilder source)
public int delete(String indexName, String timeBucketColumnName, long endTimeBucket) throws IOException
IOExceptionpublic org.elasticsearch.action.bulk.BulkProcessor createBulkProcessor(int bulkActions,
int bulkSize,
int flushInterval,
int concurrentRequests)
Copyright © 2018 The Apache Software Foundation. All rights reserved.