| 程序包 | 说明 |
|---|---|
| cn.easyes.core.toolkit |
| 限定符和类型 | 方法和说明 |
|---|---|
static EntityInfo |
EntityInfoHelper.getEntityInfo(Class<?> clazz)
获取实体映射表信息
|
static EntityInfo |
EntityInfoHelper.initIndexInfo(GlobalConfig globalConfig,
Class<?> clazz)
实体类反射获取表信息 初始化
|
| 限定符和类型 | 方法和说明 |
|---|---|
static void |
EsQueryTypeUtil.addQueryByType(org.elasticsearch.index.query.BoolQueryBuilder boolQueryBuilder,
Integer attachType,
boolean enableMust2Filter,
BaseEsParam.FieldValueModel model,
EntityInfo entityInfo,
GlobalConfig.DbConfig dbConfig)
添加查询类型 精确匹配/模糊匹配/范围匹配等
|
static boolean |
IndexUtils.createIndex(org.elasticsearch.client.RestHighLevelClient client,
EntityInfo entityInfo,
CreateIndexParam indexParam)
创建索引
|
static boolean |
IndexUtils.existsIndexWithRetry(EntityInfo entityInfo,
org.elasticsearch.client.RestHighLevelClient client)
追加后缀重试是否存在索引
|
static boolean |
IndexUtils.existsIndexWithRetryAndSetActiveIndex(EntityInfo entityInfo,
org.elasticsearch.client.RestHighLevelClient client)
追加后缀重试是否存在索引,若存在,则更新当前被激活的索引名
|
static CreateIndexParam |
IndexUtils.getCreateIndexParam(EntityInfo entityInfo)
根据配置生成创建索引参数
|
static void |
EntityInfoHelper.initIndexFields(Class<?> clazz,
GlobalConfig globalConfig,
EntityInfo entityInfo)
初始化 索引主键,索引字段
|
static List<EsIndexParam> |
IndexUtils.initIndexParam(EntityInfo entityInfo,
List<EntityFieldInfo> fieldList,
boolean isNested)
初始化索引参数
|
static Map<String,Object> |
IndexUtils.initMapping(EntityInfo entityInfo,
List<EsIndexParam> indexParamList)
初始化索引mapping
|
static boolean |
IndexUtils.isIndexNeedChange(EsIndexInfo esIndexInfo,
EntityInfo entityInfo)
判断索引是否需要变更
|
Copyright © 2022. All rights reserved.