mirror of
https://gitee.com/dromara/easy-es.git
synced 2025-12-06 17:18:57 +08:00
805 B
805 B
EE索引模块提供了如下API,供用户进行便捷调用
- indexName需要用户手动指定
- 对象 Wrapper 为 条件构造器
// 获取索引信息
GetIndexResponse getIndex();
// 获取指定索引信息
GetIndexResponse getIndex(String indexName);
// 是否存在索引
Boolean existsIndex(String indexName);
// 根据实体及自定义注解一键创建索引
Boolean createIndex();
// 创建索引
Boolean createIndex(LambdaEsIndexWrapper<T> wrapper);
// 更新索引
Boolean updateIndex(LambdaEsIndexWrapper<T> wrapper);
// 删除指定索引
Boolean deleteIndex(String indexName);
接口对应代码演示请根据名称点击大纲进入具体页面查看,亦可参考源码test模块->test目录->index包下代码