ElasticSearch Serverの本のいくつかの例を調べて、簡単な一致クエリを作成しようとしています
{
"query" : {
"match" : {
"displayname" : "john smith"
}
}
}
これは私にエラーを与えます:
{\"error\":\"SearchPhaseExecutionException[Failed to execute phase [query],
....
SearchParseException[[scripts][4]: from[-1],size[-1]: Parse Failure [Failed to parse source
....
QueryParsingException[[kb.cgi] No query registered for [match]]; }
私も試しました
{
"match" : {
"displayname" : "john smith"
}
}
http://www.elasticsearch.org/guide/reference/query-dsl/match-query/の例のように
編集:「一致」の代わりに「テキスト」を使用するとクエリが機能するように見えるため、使用しているリモートサーバーは最新の0.20.5バージョンではないと思います
私はここで報告された同様の問題を見てきました:http://elasticsearch-users.115913.n3.nabble.com/Character-escaping-td4025802.html