0
私はltrプラグインをelasticsearchに使用しています。ここに私のFEATURESETがある:私はこの要求を提出するとき[クエリ]が[クエリ]に登録されていませんエラーint ltrプラグインのelasticsearch
{
"validation": {
"params": {
"keywords": "rambo"
},
"index": "movies"
},
"featureset": {
"name": "movie_features",
"features": [
{
"name": "title_query",
"params": [
"keywords"
],
"template_language": "mustache",
"template": {
"query": {
"match": {
"title": "{{keywords}}"
}
}
}
}
]
}
}
、私は次のエラーを取得する:
{ "error": { "root_cause": [ { "type": "illegal_argument_exception", "reason": "Cannot store element, validation failed." } ], "type": "illegal_argument_exception", "reason": "Cannot store element, validation failed.", "caused_by": { "type": "search_phase_execution_exception", "reason": "all shards failed", "phase": "query", "grouped": true, "failed_shards": [ { "shard": 0, "index": "movies", "node": "OixZfLQjRzmcY8yDxTCt9w", "reason": { "type": "query_shard_exception", "reason": "Cannot create query while parsing feature [title_query]", "index_uuid": "9TSirwWkQNOuMAkHFMpGvw", "index": "movies", "caused_by": { "type": "parsing_exception", "reason": "no [query] registered for [query]", "line": 1, "col": 10 } } } ] } }, "status": 400 }
ので、何が間違っていますか? elasticsearchはクエリを構築できないようですが、クエリで何を変更する必要があるのか分かりません。