Hey guys,
is there anyone who maybe knows how to inject additional query to elastic search.
This is query example:
{
"query" : {
"bool":{
"should":[
{
"bool":{
"must_not":[
{"term":{"manufacturer.id":1}},
{"term":{"manufacturer.id":2}},
{"term":{"manufacturer.id":3}},
{"term":{"attributes.core.commodity_code":99}},
{"term":{"attributes.core.sub_commodity_code":993}}
]
}
},
{
"bool":{
"should":[
{"term":{"id":3}},
{"term":{"id":4}},
{"term":{"id":5}},
{"term":{"attributes.core.sub_commodity_code":40}},
{"term":{"attributes.core.commodity_code":42}}
]
}
}
]
}
}
}