| 程序包 | 说明 |
|---|---|
| com.centit.search.service | |
| com.centit.search.service.Impl |
| 限定符和类型 | 方法和说明 |
|---|---|
static ESServerConfig |
IndexerSearcherFactory.loadESServerConfigFormProperties(Properties properties)
从 属性文件 中读取 elastic search 服务器的配置信息
|
static ESServerConfig |
IndexerSearcherFactory.loadESServerConfigFormProperties(String propertiesFile) |
| 限定符和类型 | 方法和说明 |
|---|---|
static org.apache.commons.pool2.impl.GenericObjectPool<org.elasticsearch.client.RestHighLevelClient> |
IndexerSearcherFactory.obtainclientPool(ESServerConfig config) |
static org.apache.commons.pool2.impl.GenericObjectPool<org.elasticsearch.client.RestHighLevelClient> |
IndexerSearcherFactory.obtainclientPool(ESServerConfig config,
boolean createNew) |
static ESIndexer |
IndexerSearcherFactory.obtainIndexer(ESServerConfig config,
Class<?> objType)
创建 索引客户端,或者 返回已经创建的 客户端
|
static ESSearcher |
IndexerSearcherFactory.obtainSearcher(ESServerConfig config,
Class<?> objType)
创建 检索客户端,或者 返回已经创建的 客户端
|
| 限定符和类型 | 方法和说明 |
|---|---|
void |
PooledRestClientFactory.setConifg(ESServerConfig conifg) |
void |
ESSearcher.setESServerConfig(ESServerConfig config) |
| 构造器和说明 |
|---|
ESSearcher(ESServerConfig config,
org.apache.commons.pool2.impl.GenericObjectPool<org.elasticsearch.client.RestHighLevelClient> clientPool) |
PooledRestClientFactory(ESServerConfig config) |
Copyright © 2025 姹熻嫃鍗楀ぇ鍏堣吘淇℃伅浜т笟鑲′唤鏈夐檺鍏徃. All rights reserved.