gpt4 book ai didi

elasticsearch - 有没有办法从脚本访问 "inner_hits"数据

转载 作者:行者123 更新时间:2023-11-29 02:57:40 24 4
gpt4 key购买 nike

来自带有 "has_child" 子句和 inner_hits 的查询的响应文档具有类似于以下的结构:

 "hits": {
...
"hits": [
{
METADATA
"_source": {
...
},
"inner_hits": {
INNER HITS DATA
}
},
....

有没有办法从 Groovy 脚本访问 inner_hits 内容?

最佳答案

不,你不能:

参见 here

It is not possible, in any scripting language (not just painless). Inner hits are completely separate documents within lucene, but scripts operate on a single document at a time.

关于elasticsearch - 有没有办法从脚本访问 "inner_hits"数据,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38896794/

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