• 博客园logo
  • 会员
  • 众包
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • HarmonyOS
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
奋斗的小农
博客园 | 首页 | 新随笔 | 新文章 | 联系 | 订阅 订阅 | 管理

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 奋斗的小农 阅读(1346) 评论(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 奋斗的小农 阅读(868) 评论(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 奋斗的小农 阅读(3081) 评论(0) 推荐(0)
 
 

公告


博客园  ©  2004-2025
浙公网安备 33010602011771号 浙ICP备2021040463号-3