gpt4 book ai didi

elasticsearch - 在Elasticsearch查询中没有为[查询]注册的[查询]

转载 作者:行者123 更新时间:2023-12-03 02:21:11 26 4
gpt4 key购买 nike

我正在为版本7.6进行Elasticsearch查询

我的查询是这样的:

{
"query": {
"bool": {
"should": [
{
"bool": {
"must": [
{
"query": {
"nested": {
"path": "segmentations.catalog",
"query": {
"bool": {
"must": [
{
"match": {
"segmentations.catalog.hash": "ad2626251c63fb7650e73e4f3d01d1fd"
}
}
]
}
}
}
}
}
]
}
}
]
}
}
}

我的映射架构如下

enter image description here

我总是遇到相同的错误,没有为[query]注册的[query]

在此先感谢您的帮助

最佳答案

您的query太多:

{
"query": {
"bool": {
"should": [
{
"bool": {
"must": [
{ <---- remove query from here
"nested": {
"path": "segmentations.catalog",
"query": {
"bool": {
"must": [
{
"match": {
"segmentations.catalog.hash": "ad2626251c63fb7650e73e4f3d01d1fd"
}
}
]
}
}
}
}
]
}
}
]
}
}
}

关于elasticsearch - 在Elasticsearch查询中没有为[查询]注册的[查询],我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/62344601/

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