public interface IndexApi
| 限定符和类型 | 方法和说明 |
|---|---|
org.elasticsearch.action.admin.indices.create.CreateIndexResponse |
create(String index,
Map settings,
String type,
Map source)
创建索引
|
CompletableFuture<org.elasticsearch.action.admin.indices.create.CreateIndexResponse> |
createAsync(String index,
Map settings,
String type,
Map source)
异步创建索引
|
org.elasticsearch.action.support.master.AcknowledgedResponse |
delete(String... indices)
删除索引
|
CompletableFuture<org.elasticsearch.action.support.master.AcknowledgedResponse> |
deleteAsync(String... indices)
异步删除索引
|
org.elasticsearch.action.admin.indices.refresh.RefreshResponse |
refresh(String... indices)
刷新索引
|
CompletableFuture<org.elasticsearch.action.admin.indices.refresh.RefreshResponse> |
refreshAsync(String... indices)
异步刷新索引
|
org.elasticsearch.action.admin.indices.refresh.RefreshResponse refresh(String... indices)
indices - 待刷新的索引,使用null或 _all刷新所有索引.CompletableFuture<org.elasticsearch.action.admin.indices.refresh.RefreshResponse> refreshAsync(String... indices)
indices - 待刷新的索引,使用null或 _all刷新所有索引.org.elasticsearch.action.admin.indices.create.CreateIndexResponse create(String index, Map settings, String type, Map source)
index - index namesettings - settingstype - type namesource - sourceCompletableFuture<org.elasticsearch.action.admin.indices.create.CreateIndexResponse> createAsync(String index, Map settings, String type, Map source)
index - index namesettings - settingstype - type namesource - sourceorg.elasticsearch.action.support.master.AcknowledgedResponse delete(String... indices)
indices - 索引名CompletableFuture<org.elasticsearch.action.support.master.AcknowledgedResponse> deleteAsync(String... indices)
indices - 索引名Copyright © 2021. All rights reserved.