美文网首页
kibana 查询 elasticsearch(es)数据笔记

kibana 查询 elasticsearch(es)数据笔记

作者: shenmou | 来源:发表于2020-03-27 21:13 被阅读0次
参考文章
  • 在 Kibana的 Dev Tools中进行操作
命令一
POST  _analyze
{
  "analyzer": "ik_max_word", 
  "text": "我是中国人"
}
或查询 (and查询将should换成must)
POST /blog/_search
{
  "query": {
    "bool": {
      "should": [
        {
          "match_phrase": {
            "title": "springboot"
          }
        },
        {
          "match_phrase": {
            "content": "springboot"
          }
        }
      ]
    }
  }
}

相关文章

网友评论

      本文标题:kibana 查询 elasticsearch(es)数据笔记

      本文链接:https://www.haomeiwen.com/subject/uurruhtx.html