I am using elastic search version 1.7.5
I've taken some ideas from this post: Elastic search Not filter inside and filter
the query below does not seem to be filtering out the items that are associated with item_category_id
17. Is there a syntax error that you can see? The terms defined outside the not
, inside the filters
array are working fine.
{
query: {
filtered: {
filter: {
and: {
filters: [
{ not: {
filter: {
terms: {item_category_ids: [17] }
}
}
},
{ term: { user_inactive: false } },
{ term: { kind: 1 } }
]
}
}
}
}