What should I do if I want to exclude all matches with tags containing array ["ac0d9529b81837ea0714e8dc9fdafbcd", "86b962b99af79dd32a421ce3af7aa1ec"]? Or “Exclude all matches with these tags” alternatively
Yeah, that requires me to define tags field as the text. This would definitely work, but seems to be hacky. tags is the array, array of type JSON in the table
It doesn’t looks like what I meant, you’re checking for equality. Your query will check if str_col is equals to str4 or str5, I need to check whether array (tags) have mutual elements with the other array - if it is, skip this record. In postgres I can translate this by something like WHERE NOT (tags && $TAGS_TO_EXCLUDE).
UPD: Sorry for late condition update, in the topic starter post I said that I need “contains” functionality (tags @> $MY_ARRAY), this will be needed too.
If I’m not mistaken, it’s impossible to compare arrays in Manticore to check if one array is/is not a subset of another array. Or we need to update the docs to make it clear how to do it. Either way, feel free to create a feature request on GitHub, the dev team them will discuss it and will decide how to address it.