会员
周边
新闻
博问
AI培训
云市场
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
奋斗的小农
博客园
|
首页
|
新随笔
|
新文章
|
联系
|
订阅
|
管理
2022年1月2日
ES 并且或者查询
摘要: must should 的使用 GET /http_index/type/_search { "query": { "bool": { "should": [ { "bool": { "must": [ { "term" : { "field1" : { "value" : 110, "boost"
阅读全文
posted @ 2022-01-02 20:31 奋斗的小农
阅读(1227)
评论(0)
推荐(0)
编辑
elasticsearch返回指定字段
摘要: 1. 请求elasticsearch 返回指定字段 a._source指定需要返回的字段 { "_source":['title','id','desc'], "from":10, "size":100, } { "_source":{ "includes":["title","url","id"]
阅读全文
posted @ 2022-01-02 20:14 奋斗的小农
阅读(771)
评论(0)
推荐(0)
编辑
ES中search方法的使用
摘要: 搜索所有数据 es.search(index="my_index",doc_type="test_type") # 或者 body = { "query":{ "match_all":{} } } es.search(index="my_index",doc_type="test_type",bod
阅读全文
posted @ 2022-01-02 00:28 奋斗的小农
阅读(2855)
评论(0)
推荐(0)
编辑
公告