美文网首页
How to know your es dsl query ex

How to know your es dsl query ex

作者: i_cyy | 来源:发表于2022-02-15 15:57 被阅读0次

    You can use this query to know your dsl query explain
    Like sql explain in mysql, it will return the actual meaning of this query.
    It could be helpful when you are debugging your long dsl query which does not meet your needs.

    GET test_doc/_validate/query?explain
    {
      "query": {
      "bool": {
          "must": [
            {
              "query_string": {
                "query": "Test"
              }
            }
          ],
          "adjust_pure_negative": true,
          "boost": 1.0
        }
      }
    }
    

    相关文章

      网友评论

          本文标题:How to know your es dsl query ex

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