0
ElasticSearch返回我「query_parsing_exception」,「原因」:「[布爾]查詢不支持」嘗試使用查找條目時錯誤以下query.i認爲這個問題是關於「QUERY_STRING」elasticsearch查詢不支持query_string?
curl -XGET '<myurl>:<myport>/index/_search?pretty' -d '
{
"query": {
"bool": {
"must":[ {
"term" : {
"query" : "1.2.3.4",
"fields" : [ "ip" ]
}
},{
"range" : {
"localtime" : {
"from" : "2016-06-15T06:00:04.923Z",
"to" : "2016-06-17T17:43:04.923Z",
"include_lower" : true,
"include_upper" : true
}
}
},
"query_string" : {
"default_field" : "_all",
"query" : "word1 OR word1",
} ]
}
}
}'
爲什麼會出現此錯誤?
感謝
anyhelp可以理解的!謝謝!
得到了錯誤信息:「理由」:「[術語]查詢不支持值數組」, –
我已經更新了我的答案。 – Val
Val,你會幫我解決問題嗎?http://stackoverflow.com/questions/37925507/elasticsearch-how-to-get-distinct-value-from-two-indeices-in-php-client –