问答详情
源自:5-1 query

ES6.2.1中query_string不支持fileds了吗?

{

    "query":{

      "query_string":{

          "query":"入门",

          "fileds":["title","author"]

      }

    }

}

send之后报错:

{

  "error": {

    "root_cause": [

      {

        "type": "parsing_exception",

        "reason": "[query_string] query does not support [fileds]",

        "line": 5,

        "col": 20

      }

    ],

    "type": "parsing_exception",

    "reason": "[query_string] query does not support [fileds]",

    "line": 5,

    "col": 20

  },

  "status": 400

}


提问者:慕婉清1549775 2019-01-08 17:50

个回答

  • PHPer1988
    2019-01-25 20:56:03

    是你fileds写错了,正确的是fields