Answer the question
In order to leave comments, you need to log in
How to build a specific query or similar for elasticsearch through bodybuilder?
How to build such a request through bodybuilder ?
{
"query": {
"bool": {
"must": [
{
"bool": {
"should": [
{
"terms": {
"parent_id": [
5
]
}
}
]
}
},
{
"bool": {
"should": [
{
"terms": {
"is_active": [
true
]
}
}
]
}
},
{
"bool": {
"should": [
{
"terms": {
"include_in_menu": [1]
}
}
]
}
}
],
"must_not": [],
"should": []
}
},
"from": 0,
"size": 10,
"sort": [{"product_count": "desc"}],
"aggs": {}
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question