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
}
2019-01-25
是你fileds寫錯了,正確的是fields