public interface ElasticsearchClient
Modifier and Type | Method and Description |
---|---|
void |
close()
Close the client.
|
void |
createIndexIfDoesNotExist(String indexName,
int shards,
int replicas)
Create index if it does not exist.
|
void |
deleteIndex(String indexName)
Delete the index.
|
List<KeyValue<Integer,String>> |
fetchAll(QueryParams params)
Fetch all results from the index.
|
void |
refreshIndex(String indexName)
Refresh the index.
|
void deleteIndex(String indexName)
indexName
- The index name.void refreshIndex(String indexName)
indexName
- The index name.void createIndexIfDoesNotExist(String indexName, int shards, int replicas)
indexName
- The index name.shards
- The number of shards.replicas
- The number of replicas.void close() throws Exception
Exception
List<KeyValue<Integer,String>> fetchAll(QueryParams params)
params
- The parameters of the query.Copyright © 2014–2022 The Apache Software Foundation. All rights reserved.