gpt4 book ai didi

elasticsearch - elasticsearch2.2.0中的局部字段不起作用?

转载 作者:行者123 更新时间:2023-12-03 01:01:34 25 4
gpt4 key购买 nike

我是否可以知道为什么部分字段在Elasticsearch 2.2.0中不起作用的详细信息,我最近从Elasticsearch 1.7.2升级到了Elasticsearch 2.2.0。在较旧的版本中,它可以工作,但是升级结果没有出现并引发异常。

请找到错误以供引用

{
"error": {
"root_cause": [
{
"type": "search_parse_exception",
"reason": "failed to parse search source. unknown search element [partial_fields]",
"line": 79,
"col": 4
}
],
"type": "search_phase_execution_exception",
"reason": "all shards failed",
"phase": "query",
"grouped": true,
"failed_shards": [
{
"shard": 0,
"index": "candidates1",
"node": "tlFrZ6JKTOWJ6krrkRnhMw",
"reason": {
"type": "search_parse_exception",
"reason": "failed to parse search source. unknown search element [partial_fields]",
"line": 79,
"col": 4
}
}
]
},
"status": 400
}

最佳答案

2.0中的部分字段have been removed,现在您应该改用source filtering

只需将partial_fields替换为_source,它就可以工作。

关于elasticsearch - elasticsearch2.2.0中的局部字段不起作用?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36672288/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com