企业🤖AI智能体构建引擎,智能编排和调试,一键部署,支持私有化部署方案 广告
## 范围查询 查询 age 在 25 至 29 岁之间的人 ``` GET /user/docs/_search?q=age[25 TO 29] ``` 有数据返回 ``` { "took" : 22, "timed_out" : false, "_shards" : { "total" : 1, "successful" : 1, "skipped" : 0, "failed" : 0 }, "hits" : { "total" : { "value" : 1, "relation" : "eq" }, "max_score" : 1.0, "hits" : [ { "_index" : "user", "_type" : "docs", "_id" : "3", "_score" : 1.0, "_source" : { "name" : "王五", "sex" : 1, "age" : 25, "address" : "河北省" } } ] } } ``` 无数据返回 ``` { "took" : 899, "timed_out" : false, "_shards" : { "total" : 1, "successful" : 1, "skipped" : 0, "failed" : 0 }, "hits" : { "total" : { "value" : 0, "relation" : "eq" }, "max_score" : null, "hits" : [ ] } } ```