Handle multi nested query with explorer : ) #162
Answered
by
Jeroen-G
Hilsonxhero
asked this question in
Q&A
-
How can i handle this query with explorer .{
"query": {
"bool": {
"must": [
{
"nested": {
"path": "features",
"query": {
"bool": {
"must": [
{
"match": {
"features.feature_id": 9
}
},
{
"terms": {
"features.feature_value_id": ["2"]
}
}
]
}
}
}
},
{
"nested": {
"path": "features",
"query": {
"bool": {
"must": [
{
"match": {
"features.feature_id": 10
}
},
{
"terms": {
"features.feature_value_id": ["4"]
}
}
]
}
}
}
}
]
}
}
} |
Beta Was this translation helpful? Give feedback.
Answered by
Jeroen-G
Feb 27, 2023
Replies: 1 comment
-
There's a Nested syntax in Explorer, as well as a Match and Term. Play with them and see if you get some results that work for you :) |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
Hilsonxhero
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
There's a Nested syntax in Explorer, as well as a Match and Term. Play with them and see if you get some results that work for you :)