2020年5月19日

Elasticsearch 范围查询

摘要: 范围查询(range query) 范围查询用于匹配某些字段的字段值位于特定范围内的文档。Lucene查询的类型依赖于字段的类型,对于字符串字段,是TermRangeQuery,而对于数字/日期字段,查询是NumericRangeQuery。 GET _search { "query": { "ra 阅读全文

posted @ 2020-05-19 14:58 ExplorerMan 阅读(7385) 评论(0) 推荐(0)

es组合多个条件进行查询

摘要: GET /test_index/_search{ "query": { "bool": { "must": { "match": { "name": "tom" }}, "should": [ { "match": { "hired": true }}, { "bool": { "must": { 阅读全文

posted @ 2020-05-19 14:57 ExplorerMan 阅读(61763) 评论(1) 推荐(1)

导航