public interface EsSearchService
| 限定符和类型 | 方法和说明 |
|---|---|
org.elasticsearch.client.core.CountResponse |
executeCount(org.elasticsearch.client.core.CountRequest countRequest)
统计
|
org.elasticsearch.action.search.SearchResponse |
executeSearch(org.elasticsearch.action.search.SearchRequest request)
查询
|
org.elasticsearch.action.get.MultiGetResponse |
executMget(org.elasticsearch.action.get.MultiGetRequest multiGetRequest)
一次性查询多个指定结果
|
org.elasticsearch.action.get.MultiGetResponse |
executMget(String indexName,
List<String> ids)
一次性查询多个指定结果
|
List<Map<String,Object>> |
getAll(org.elasticsearch.action.search.SearchRequest searchRequest)
查询所有
|
org.elasticsearch.action.get.GetResponse |
getById(String index,
String esOnlyId)
通过ID获取数据
|
org.elasticsearch.action.search.SearchResponse |
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)
分页检索示例
|
List<Map<String,Object>> |
groupExample()
分组统计示例,根据实际需求自己些
|
org.elasticsearch.action.search.SearchResponse |
page(List<String> index,
Integer startPage,
Integer pageSize)
无条件分页检索示例
|
Map<String,Object> |
searchDataById(String index,
String esOnlyId)
通过ID获取数据
|
Map<String,Object> searchDataById(String index, String esOnlyId) throws IOException
IOException - IOExceptionorg.elasticsearch.action.get.GetResponse getById(String index, String esOnlyId) throws IOException
IOException - IOExceptionorg.elasticsearch.action.get.MultiGetResponse executMget(org.elasticsearch.action.get.MultiGetRequest multiGetRequest)
throws IOException
IOException - IOExceptionorg.elasticsearch.action.get.MultiGetResponse executMget(String indexName, List<String> ids) throws IOException
IOException - IOExceptionorg.elasticsearch.action.search.SearchResponse executeSearch(org.elasticsearch.action.search.SearchRequest request)
throws IOException
IOException - IOExceptionorg.elasticsearch.client.core.CountResponse executeCount(org.elasticsearch.client.core.CountRequest countRequest)
throws IOException
IOException - IOExceptionorg.elasticsearch.action.search.SearchResponse page(List<String> index, Integer startPage, Integer pageSize) throws IOException
IOException - IOExceptionorg.elasticsearch.action.search.SearchResponse 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) throws IOException
IOException - IOException
and field1 in ('value1','value2','value3'...)
and field2 in ('value1','value2','value3'...)
and field3 in ('value1','value2','value3'...)
...)
and (高级组合))
and ((高级组合) or (高级组合) or(高级组合))
and ((高级组合) or (高级组合) or(高级组合))
and ((高级组合) or (高级组合) or(高级组合))
...)
List<Map<String,Object>> getAll(org.elasticsearch.action.search.SearchRequest searchRequest) throws IOException
IOException - IOExceptionList<Map<String,Object>> groupExample() throws IOException
IOException - IOExceptionCopyright © 2023 tan. All rights reserved.