我的代码是
curl -XGET 'http://localhost:9200/web/_suggest?pretty' -d '
{ "brand-suggest": {"completion": {"field": "nameSuggest","size": "5","context": { "private": "false" }}, "text": "sampl"}}'
尝试使用 elasticsearch 建议查询时出现错误。
"index" : "webpage",
"shard" : 4,
"status" : 500,
"reason" : "BroadcastShardOperationFailedException[[tellofy][4] ]; nested: ElasticsearchException[failed to execute suggest]; nested: ElasticsearchIllegalArgumentException[suggester [completion] doesn't expect any context]; "
}
出现上述错误的原因是什么。我无法找到该错误的原因。