es
scryihao
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
ES查询语法以及对应的java写法(基于ES7.3.2版本,服务器与java客户端都是这个)
案例1:普通的条件查询,多条件查询 查询表订单表order中orderStatus为4,orderType为9,billSupplierId 为(11111,2222,33333) ,billCreateTime在1603728000000与1603814400000之间的数据 数据库查询语句 select * from order where orderStatus = 4 and orderType = 9 and billSupplierId in (11111,2222,33333) and原创 2020-11-04 22:54:25 · 2409 阅读 · 1 评论 -
ES基础查询语法
普通查询,多条件查询 must term 类似数据库 = must terms 类似于数据库查询的 in must_not term 类型数据库的 != must_not terms 类型于数据库查询的 not in POST /exp-order-v1-benchmark-202010/_search { "query": { "bool": { "must": [{ "terms": { "orderStatus": [ 4, 5 ] }原创 2020-10-28 17:30:09 · 1457 阅读 · 0 评论 -
ES7.3.2版本查询操作
最近由于重构原有的项目,并对项目中原有的老版本ES升级到了7.3.2版本,做个记录,防止忘记。 public ElasticSearchPage queryOrderList(QueryBillListInput input) { //这里是构建一个请求es的报文体 BoolQueryBuilder booleanQueryBuilder = QueryBuilders.boolQuery(); if (input.getCompanyId() != null) {原创 2020-07-16 00:18:14 · 493 阅读 · 0 评论
分享