ES 核心服务
| Type | Name and description |
|---|---|
bropen.framework.core.SettingService |
settingService |
| Type | Name and description |
|---|---|
void |
closeClient()关闭连接 |
boolean |
configBropenDevHosts(String prefix, List<String> hosts = ["localhost", int portHttp = 9276, int portParser = 6601) |
org.elasticsearch.client.RestHighLevelClient |
getClient(Map options = null)获取 Es 客户端对象 |
String |
getCurrentHttpAddress() |
String |
getFileParserUrl() |
Integer |
getImportPageSize() |
Integer |
getQueryPageSize() |
void |
init() |
boolean |
isEnabled()是否启用 |
void |
setEnabled(boolean enabled)禁用或启用 |
void |
test() |
| Methods inherited from class | Name |
|---|---|
class Object |
Object#wait(long, int), Object#wait(long), Object#wait(), Object#equals(Object), Object#toString(), Object#hashCode(), Object#getClass(), Object#notify(), Object#notifyAll() |
关闭连接
获取 Es 客户端对象
options.reload - 是否重新加载客户端是否启用
禁用或启用
启用的前提是必须配置 bropen.search.ElasticSearch.hosts,否则会导致不可预知的异常。