| 程序包 | 说明 |
|---|---|
| cn.jdevelops.search.es.service | |
| cn.jdevelops.search.es.service.impl | |
| cn.jdevelops.search.es.util |
| 限定符和类型 | 方法和说明 |
|---|---|
org.elasticsearch.action.search.SearchResponse |
EsSearchService.getSearch(List<String> index,
List<EqDTO> eqDTOList,
List<String> terms,
List<String> fields,
String nested,
List<String> nestedFields,
List<ConditionDTO> conditionDTOList,
List<List<List<ConditionDTO>>> listList,
String highlightField,
Integer startPage,
Integer pageSize,
List<SortDTO> sortDTOList)
分页检索示例
|
org.elasticsearch.action.search.SearchResponse |
EsSearchService.getSearch(List<String> index,
List<EqDTO> eqDTOList,
List<String> terms,
List<String> fields,
String nested,
List<String> nestedFields,
List<ConditionDTO> conditionDTOList,
List<List<List<ConditionDTO>>> listList,
String highlightField,
Integer startPage,
Integer pageSize,
List<SortDTO> sortDTOList)
分页检索示例
|
| 限定符和类型 | 方法和说明 |
|---|---|
org.elasticsearch.action.search.SearchResponse |
EsSearchServiceImpl.getSearch(List<String> index,
List<EqDTO> eqDTOList,
List<String> terms,
List<String> fields,
String nested,
List<String> nestedFields,
List<ConditionDTO> conditionDTOList,
List<List<List<ConditionDTO>>> listList,
String highlightField,
Integer startPage,
Integer pageSize,
List<SortDTO> sortDTOList) |
org.elasticsearch.action.search.SearchResponse |
EsSearchServiceImpl.getSearch(List<String> index,
List<EqDTO> eqDTOList,
List<String> terms,
List<String> fields,
String nested,
List<String> nestedFields,
List<ConditionDTO> conditionDTOList,
List<List<List<ConditionDTO>>> listList,
String highlightField,
Integer startPage,
Integer pageSize,
List<SortDTO> sortDTOList) |
| 限定符和类型 | 方法和说明 |
|---|---|
static org.elasticsearch.index.query.BoolQueryBuilder |
EsBasicsUtil.setAdvanced(List<ConditionDTO> conditionDTOList)
多条件按照与或非拼接,返回一个新的条件块 BoolQueryBuilder
and(x=1 or x=2 ) and(y=1 or y=3) and(z!
|
static void |
EsBasicsUtil.setAdvancedList(org.elasticsearch.index.query.BoolQueryBuilder boolQueryBuilder,
List<List<List<ConditionDTO>>> listList)
复杂条件查询,拼接结果效果类似于:
and ((高级组合) or (高级组合) or(高级组合))
and ((高级组合) or (高级组合) or(高级组合)) and ((高级组合) or (高级组合) or(高级组合)) ... |
Copyright © 2023 tan. All rights reserved.