跳过导航链接
A B C D E G H L M N O S T U 

A

addDocument(String, String, T) - 接口 中的方法cn.jdevelops.data.es.core.ElasticService
新增文档
addDocument(String, String, T) - 类 中的方法cn.jdevelops.data.es.core.ElasticServiceImpl
新增文档
AND - 接口 中的静态变量cn.jdevelops.data.es.constant.EsConstant
AND 并且

B

BeanUtil - cn.jdevelops.data.es.util中的类
 
BeanUtil() - 类 的构造器cn.jdevelops.data.es.util.BeanUtil
 
bulkAddDocument(String, List<T>, String) - 接口 中的方法cn.jdevelops.data.es.core.ElasticService
批量新增、修改数据操作
bulkAddDocument(BulkRequest.Builder) - 接口 中的方法cn.jdevelops.data.es.core.ElasticService
批量操作新增、编辑,组装参数示例: BulkRequest.Builder br = new BulkRequest.Builder(); for (Test8Bean product : products) { br.operations(op -> op .index(idx -> idx .index("abc_test9") .id(product.getNo()) .document(product) ) ); } br.build();
bulkAddDocument(String, List<T>, String) - 类 中的方法cn.jdevelops.data.es.core.ElasticServiceImpl
批量新增、修改数据操作
bulkAddDocument(BulkRequest.Builder) - 类 中的方法cn.jdevelops.data.es.core.ElasticServiceImpl
批量操作新增、编辑,组装参数示例: BulkRequest.Builder br = new BulkRequest.Builder(); for (Test8Bean product : products) { br.operations(op -> op .index(idx -> idx .index("abc_test9") .id(product.getNo()) .document(product) ) ); } br.build();

C

cn.jdevelops.data.es.config - 程序包 cn.jdevelops.data.es.config
 
cn.jdevelops.data.es.constant - 程序包 cn.jdevelops.data.es.constant
 
cn.jdevelops.data.es.core - 程序包 cn.jdevelops.data.es.core
 
cn.jdevelops.data.es.dto - 程序包 cn.jdevelops.data.es.dto
 
cn.jdevelops.data.es.entity - 程序包 cn.jdevelops.data.es.entity
 
cn.jdevelops.data.es.exception - 程序包 cn.jdevelops.data.es.exception
 
cn.jdevelops.data.es.schema - 程序包 cn.jdevelops.data.es.schema
 
cn.jdevelops.data.es.util - 程序包 cn.jdevelops.data.es.util
 
compareDSL(JSONObject, Map<String, Property>) - 类 中的静态方法cn.jdevelops.data.es.util.BeanUtil
验证 dsl 是否相同 (目前值判断到了key是否相同,里面的小元素没有验证)
ConditionDTO - cn.jdevelops.data.es.dto中的类
检索条件接收实体
ConditionDTO() - 类 的构造器cn.jdevelops.data.es.dto.ConditionDTO
 
copyNoNullProperties(Object, Object) - 类 中的静态方法cn.jdevelops.data.es.util.BeanUtil
功能 : 只复制source对象的非空属性到target对象上
count(String, Query) - 接口 中的方法cn.jdevelops.data.es.core.ElasticService
查询数量
count(String, Query) - 类 中的方法cn.jdevelops.data.es.core.ElasticServiceImpl
查询数量
CreateElasticsearchMapping - cn.jdevelops.data.es.schema中的类
创建 mapping 获取自定义注解的类 参考:ClasspathScanningPersistenceUnitPostProcessor#postProcessPersistenceUnitInfo
CreateElasticsearchMapping(ApplicationContext) - 类 的构造器cn.jdevelops.data.es.schema.CreateElasticsearchMapping
 
createIndex(String) - 接口 中的方法cn.jdevelops.data.es.core.ElasticService
创建索引,仅仅是索引名称,无任何mapping
createIndex(String, InputStream) - 接口 中的方法cn.jdevelops.data.es.core.ElasticService
创建索引,带mapping的json文件流 获取mapping的json文件流示例: ClassPathResource classPathResource = new ClassPathResource("esmapping/test8.json"); InputStream input = classPathResource.getInputStream();
createIndex(String) - 类 中的方法cn.jdevelops.data.es.core.ElasticServiceImpl
创建索引,仅仅是索引名称,无任何mapping
createIndex(String, InputStream) - 类 中的方法cn.jdevelops.data.es.core.ElasticServiceImpl
创建索引,带mapping的json文件流 获取mapping的json文件流示例: ClassPathResource classPathResource = new ClassPathResource("esmapping/test8.json"); InputStream input = classPathResource.getInputStream();
createIndexNoVerify(String, InputStream) - 接口 中的方法cn.jdevelops.data.es.core.ElasticService
创建索引,带mapping的json文件流[不进行重复判断,交给调用方自己判断] 获取mapping的json文件流示例: ClassPathResource classPathResource = new ClassPathResource("esmapping/test8.json"); InputStream input = classPathResource.getInputStream();
createIndexNoVerify(String, InputStream) - 类 中的方法cn.jdevelops.data.es.core.ElasticServiceImpl
 

D

dateHistogramBucket(List<DateHistogramBucket>) - 类 中的静态方法cn.jdevelops.data.es.util.EsUtil
日期直方图取值
defaultHighSelect(BoolQuery.Builder, List<ConditionDTO>) - 类 中的静态方法cn.jdevelops.data.es.util.EsUtil
高级检索下拉多条件默认拼接(精确 match_phrase,模糊 match 。
deleteById(String, String) - 接口 中的方法cn.jdevelops.data.es.core.ElasticService
删除单条数据
deleteById(String, String) - 类 中的方法cn.jdevelops.data.es.core.ElasticServiceImpl
删除单条数据
deleteByIds(String, List<String>) - 接口 中的方法cn.jdevelops.data.es.core.ElasticService
批量删除数据
deleteByIds(String, List<String>) - 类 中的方法cn.jdevelops.data.es.core.ElasticServiceImpl
批量删除数据
deleteByQuery(String, Query) - 接口 中的方法cn.jdevelops.data.es.core.ElasticService
根据查询条件删除数据
deleteByQuery(String, Query) - 类 中的方法cn.jdevelops.data.es.core.ElasticServiceImpl
根据查询条件删除数据
deleteIndex(String) - 接口 中的方法cn.jdevelops.data.es.core.ElasticService
删除索引结构
deleteIndex(String) - 类 中的方法cn.jdevelops.data.es.core.ElasticServiceImpl
删除索引结构

E

ElasticClientConfig - cn.jdevelops.data.es.config中的类
 
ElasticClientConfig() - 类 的构造器cn.jdevelops.data.es.config.ElasticClientConfig
 
ElasticProperties - cn.jdevelops.data.es.config中的类
ES 基础配置
ElasticProperties() - 类 的构造器cn.jdevelops.data.es.config.ElasticProperties
 
elasticsearchClient() - 类 中的方法cn.jdevelops.data.es.config.ElasticClientConfig
 
ElasticsearchException - cn.jdevelops.data.es.exception中的异常错误
es 异常
ElasticsearchException() - 异常错误 的构造器cn.jdevelops.data.es.exception.ElasticsearchException
 
ElasticsearchException(String) - 异常错误 的构造器cn.jdevelops.data.es.exception.ElasticsearchException
 
ElasticsearchException(String, Throwable) - 异常错误 的构造器cn.jdevelops.data.es.exception.ElasticsearchException
 
ElasticsearchException(String, Throwable, int) - 异常错误 的构造器cn.jdevelops.data.es.exception.ElasticsearchException
 
ElasticsearchException(int, String) - 异常错误 的构造器cn.jdevelops.data.es.exception.ElasticsearchException
 
ElasticService - cn.jdevelops.data.es.core中的接口
ElasticServiceImpl
ElasticServiceImpl - cn.jdevelops.data.es.core中的类
ElasticServiceImpl
ElasticServiceImpl() - 类 的构造器cn.jdevelops.data.es.core.ElasticServiceImpl
 
EQ - 接口 中的静态变量cn.jdevelops.data.es.constant.EsConstant
EQ EQUAL等于
EqDTO - cn.jdevelops.data.es.dto中的类
等于匹配条件 PS: name ='张三' OR name ='李四'
EqDTO() - 类 的构造器cn.jdevelops.data.es.dto.EqDTO
 
EsBasicsUtil - cn.jdevelops.data.es.util中的类
Es基础工具类
EsBasicsUtil() - 类 的构造器cn.jdevelops.data.es.util.EsBasicsUtil
 
EsConstant - cn.jdevelops.data.es.constant中的接口
ES常量
EsPageResult<R> - cn.jdevelops.data.es.entity中的类
ES分页数据实体
EsPageResult(Integer, Integer, Integer, Long, List<R>) - 类 的构造器cn.jdevelops.data.es.entity.EsPageResult
 
EsPageResult() - 类 的构造器cn.jdevelops.data.es.entity.EsPageResult
返回空对象
EsPageResult(PageDTO) - 类 的构造器cn.jdevelops.data.es.entity.EsPageResult
返回空对象
EsUtil - cn.jdevelops.data.es.util中的类
EsUtil
EsUtil() - 类 的构造器cn.jdevelops.data.es.util.EsUtil
 
existIndex(String) - 接口 中的方法cn.jdevelops.data.es.core.ElasticService
验证索引是否存在
existIndex(String) - 类 中的方法cn.jdevelops.data.es.core.ElasticServiceImpl
验证索引是否存在
existsById(String, String) - 接口 中的方法cn.jdevelops.data.es.core.ElasticService
验证数据是否存在
existsById(String, String) - 类 中的方法cn.jdevelops.data.es.core.ElasticServiceImpl
验证数据是否存在

G

getAll(String, Query, Class<T>) - 接口 中的方法cn.jdevelops.data.es.core.ElasticService
获取所有数据
getAll(String, Query, Class<T>) - 类 中的方法cn.jdevelops.data.es.core.ElasticServiceImpl
获取所有数据
getAllField(Class) - 类 中的静态方法cn.jdevelops.data.es.util.BeanUtil
反射用的 获取Class的字段
getBasePackage() - 类 中的方法cn.jdevelops.data.es.config.ElasticProperties
 
getById(String, String, Class<T>) - 接口 中的方法cn.jdevelops.data.es.core.ElasticService
获取单条数据
getById(String, String, Class<T>) - 类 中的方法cn.jdevelops.data.es.core.ElasticServiceImpl
获取单条数据
getCode() - 异常错误 中的方法cn.jdevelops.data.es.exception.ElasticsearchException
 
getConnectionRequestTimeout() - 类 中的方法cn.jdevelops.data.es.config.ElasticProperties
 
getConnectTimeout() - 类 中的方法cn.jdevelops.data.es.config.ElasticProperties
 
getErrorMessage() - 异常错误 中的方法cn.jdevelops.data.es.exception.ElasticsearchException
 
getSocketTimeout() - 类 中的方法cn.jdevelops.data.es.config.ElasticProperties
 
GT - 接口 中的静态变量cn.jdevelops.data.es.constant.EsConstant
GT GREATER THAN大于
GTE - 接口 中的静态变量cn.jdevelops.data.es.constant.EsConstant
GTE GREATER THAN AND EQUAL 大于等于

H

handleSearchResponse(SearchResponse<T>, String, Class<T>) - 类 中的静态方法cn.jdevelops.data.es.util.EsBasicsUtil
高亮结果集处理示例
HTTP_200 - 接口 中的静态变量cn.jdevelops.data.es.constant.EsConstant
http请求状态码200

L

LIKE - 接口 中的静态变量cn.jdevelops.data.es.constant.EsConstant
LIKE 包含
logger - 类 中的变量cn.jdevelops.data.es.core.ElasticServiceImpl
 
LT - 接口 中的静态变量cn.jdevelops.data.es.constant.EsConstant
LT LESS THAN 小于
LTE - 接口 中的静态变量cn.jdevelops.data.es.constant.EsConstant
LTE LESS THAN AND EQUAL 小于等于

M

mget(String, List<String>, Class<T>) - 接口 中的方法cn.jdevelops.data.es.core.ElasticService
根据ID批量查询 # 结果取值示例 for (MultiGetResponseItem<SiteStoreDO> doc : mgetResponse.docs()) { SiteStoreDO source = doc.result().source(); }
mget(String, List<String>, Class<T>) - 类 中的方法cn.jdevelops.data.es.core.ElasticServiceImpl
根据ID批量查询 # 结果取值示例 for (MultiGetResponseItem<SiteStoreDO> doc : mgetResponse.docs()) { SiteStoreDO source = doc.result().source(); }

N

NOT - 接口 中的静态变量cn.jdevelops.data.es.constant.EsConstant
NOT 非

O

onApplicationEvent(ContextRefreshedEvent) - 类 中的方法cn.jdevelops.data.es.schema.CreateElasticsearchMapping
 
OR - 接口 中的静态变量cn.jdevelops.data.es.constant.EsConstant
OR 或者

S

search(SearchRequest, Class<T>) - 接口 中的方法cn.jdevelops.data.es.core.ElasticService
查询数据,需自己处理结果集
search(SearchRequest, Class<T>) - 类 中的方法cn.jdevelops.data.es.core.ElasticServiceImpl
查询数据,需自己处理结果集
searchList(SearchRequest, Class<T>) - 接口 中的方法cn.jdevelops.data.es.core.ElasticService
只返回当前页结果集
searchList(SearchRequest, Class<T>) - 类 中的方法cn.jdevelops.data.es.core.ElasticServiceImpl
只返回当前页结果集
searchPage(SearchRequest, Class<T>) - 接口 中的方法cn.jdevelops.data.es.core.ElasticService
分页查询
searchPage(SearchRequest, Class<T>) - 类 中的方法cn.jdevelops.data.es.core.ElasticServiceImpl
分页查询
setBasePackage(String) - 类 中的方法cn.jdevelops.data.es.config.ElasticProperties
 
setConnectionRequestTimeout(Integer) - 类 中的方法cn.jdevelops.data.es.config.ElasticProperties
 
setConnectTimeout(Integer) - 类 中的方法cn.jdevelops.data.es.config.ElasticProperties
 
setConSymbol(String, String, String) - 类 中的静态方法cn.jdevelops.data.es.util.EsBasicsUtil
判断拼接条件,返回查询块
setDateEQ(BoolQuery.Builder, String, TimeFormatEnum, String, String) - 类 中的静态方法cn.jdevelops.data.es.util.EsUtil
日期类型 闭区间
setDateNE(BoolQuery.Builder, String, TimeFormatEnum, String, String) - 类 中的静态方法cn.jdevelops.data.es.util.EsUtil
日期类型 闭区间
setExcludesFields(SearchRequest.Builder, String) - 类 中的静态方法cn.jdevelops.data.es.util.EsBasicsUtil
设置返回数据中需要排除字段
setExcludesFields(SearchRequest.Builder, String, String) - 类 中的静态方法cn.jdevelops.data.es.util.EsBasicsUtil
设置返回字段、排除字段
setFieldsLike(String, List<String>) - 类 中的静态方法cn.jdevelops.data.es.util.EsBasicsUtil
多个字段模糊匹配同一个值
setFieldValueEq(BoolQuery.Builder, String, String) - 类 中的静态方法cn.jdevelops.data.es.util.EsBasicsUtil
设置两个字段相等 类似于 sql中的 where 字段1=字段2 特别备注: sourceField、targetField 只能是keyword类型,或者数字,不能是text
setHighlightField(SearchRequest.Builder, String) - 类 中的静态方法cn.jdevelops.data.es.util.EsBasicsUtil
设置高亮
setHighlightField(SearchRequest.Builder, List<String>) - 类 中的静态方法cn.jdevelops.data.es.util.EsBasicsUtil
设置高亮
setIncludesFields(SearchRequest.Builder, String) - 类 中的静态方法cn.jdevelops.data.es.util.EsBasicsUtil
设置返回数据中只需要的字段
setLtCurrentYear(BoolQuery.Builder, String) - 类 中的静态方法cn.jdevelops.data.es.util.EsUtil
设置时间字段,截至当前年为止的所有数据,包含当前年
setNested(BoolQuery.Builder, String, String, List<String>) - 类 中的静态方法cn.jdevelops.data.es.util.EsBasicsUtil
拼接嵌套条件
setNumberEQ(BoolQuery.Builder, String, Integer, Integer) - 类 中的静态方法cn.jdevelops.data.es.util.EsUtil
数字类型范围闭区间查询 [0,5] 等同于0<= 且 >= 5
setNumberNE(BoolQuery.Builder, String, Integer, Integer) - 类 中的静态方法cn.jdevelops.data.es.util.EsUtil
数字类型范围开区间查询 (0,5) 等同于0< 且 > 5
setOrder(SearchRequest.Builder, SortDTO) - 类 中的静态方法cn.jdevelops.data.es.util.EsBasicsUtil
设置排序
setOrder(SearchRequest.Builder, String, Integer) - 类 中的静态方法cn.jdevelops.data.es.util.EsBasicsUtil
设置排序
setOrder(SearchRequest.Builder, String, SortOrder) - 类 中的静态方法cn.jdevelops.data.es.util.EsBasicsUtil
设置排序
setPage(SearchRequest.Builder, Integer, Integer) - 类 中的静态方法cn.jdevelops.data.es.util.EsBasicsUtil
设置分页 (传入正常的前端 pageIndex 从1开始)
setPage(SearchRequest.Builder, PageDTO) - 类 中的静态方法cn.jdevelops.data.es.util.EsBasicsUtil
设置分页 (PageDTO.getPageIndex() 已经处理了一些判断)
setPageWindowIsTooLarge(SearchRequest.Builder, Integer, Integer) - 类 中的静态方法cn.jdevelops.data.es.util.EsBasicsUtil
fix: Result window is too large, from + size must be less than or equal to: [10000] but was [10010].
setPageWindowIsTooLarge(SearchRequest.Builder, PageDTO) - 类 中的静态方法cn.jdevelops.data.es.util.EsBasicsUtil
fix: Result window is too large, from + size must be less than or equal to: [10000] but was [10010].
setRangYears(BoolQuery.Builder, String, List<String>) - 类 中的静态方法cn.jdevelops.data.es.util.EsUtil
设置时间等于多个值,or连接
setSocketTimeout(Integer) - 类 中的方法cn.jdevelops.data.es.config.ElasticProperties
 
setTermAnd(BoolQuery.Builder, String, List<String>) - 类 中的静态方法cn.jdevelops.data.es.util.EsUtil
一个字段 等于多个值,and连接
setTermsOr(BoolQuery.Builder, String, List<String>) - 类 中的静态方法cn.jdevelops.data.es.util.EsUtil
一个字段 等于多个值,or连接
showIndexMapping(String) - 接口 中的方法cn.jdevelops.data.es.core.ElasticService
查看索引
showIndexMapping(String) - 类 中的方法cn.jdevelops.data.es.core.ElasticServiceImpl
 
SortDTO - cn.jdevelops.data.es.dto中的类
 
SortDTO() - 类 的构造器cn.jdevelops.data.es.dto.SortDTO
 
stringTermsBucket(List<StringTermsBucket>) - 类 中的静态方法cn.jdevelops.data.es.util.EsUtil
直接聚合取值使用的agg
stringTermsBucket2ListKey(List<StringTermsBucket>) - 类 中的静态方法cn.jdevelops.data.es.util.EsUtil
直接聚合取值使用的agg,且只返回key的集合

T

toString() - 类 中的方法cn.jdevelops.data.es.config.ElasticProperties
 

U

updateDocument(String, String, T) - 接口 中的方法cn.jdevelops.data.es.core.ElasticService
修改数据
updateDocument(String, String, T) - 类 中的方法cn.jdevelops.data.es.core.ElasticServiceImpl
修改数据
updateFieldValue(String, Query, String, Object) - 接口 中的方法cn.jdevelops.data.es.core.ElasticService
更新字段的值
updateFieldValue(String, Query, String, Object) - 类 中的方法cn.jdevelops.data.es.core.ElasticServiceImpl
 
A B C D E G H L M N O S T U 
跳过导航链接

Copyright © 2024 tan. All rights reserved.