| 程序包 | 说明 |
|---|---|
| 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.transport.TransportClient> |
IndexerSearcherFactory.obtainclientPool(ESServerConfig config) |
static Indexer |
IndexerSearcherFactory.obtainIndexer(ESServerConfig config,
Class<?> objType)
创建 索引客户端,或者 返回已经创建的 客户端
|
static Searcher |
IndexerSearcherFactory.obtainSearcher(ESServerConfig config,
Class<?> objType)
创建 检索客户端,或者 返回已经创建的 客户端
|
| 限定符和类型 | 方法和说明 |
|---|---|
void |
PooledTransportClientTactory.setConifg(ESServerConfig conifg) |
void |
ESSearcher.setESServerConfig(ESServerConfig config) |
| 构造器和说明 |
|---|
ESSearcher(ESServerConfig config,
org.apache.commons.pool2.impl.GenericObjectPool<org.elasticsearch.client.transport.TransportClient> clientPool) |
PooledTransportClientTactory(ESServerConfig config) |
Copyright © 2019 Centit Information Technical, co. Inc.. All rights reserved.