{% raw %}
This document is intended to provide examples of Request Body Search (Elasticsearch), for faster and flexible products searches within E-Com Plus Search API.
You should use the examples below as request body of Items Complex Search reference.
{
"query": {
"bool": {
"filter": [
{
"terms": {
"brands.name": [ "BRAND_NAME" ]
}
}
]
}
}
}
{
"query": {
"bool": {
"filter": [
{
"terms": {
"brands.name": [ "BRAND1", "BRAND2", "BRAND3" ]
}
},
{
"terms": {
"categories.name": [ "CATEGORY_NAME" ]
}
}
]
}
}
}
{% endraw %}