Hello,
I have documents of following struct:
“Name”: Doc1,
“Tag”: [
{
“Text”: “a”
},
]
“Name”: Doc2,
“Tag”: [
{
“Text”: “b”
},
]
“Name”: Doc3,
“Tag”: [
{
“Text”: “c”
},
]
“Name”: Doc4,
“Tag”: [
{
“Text”: “a”
},
{
“Text”: “b”
}
],
Now I would like to make a query to get all docs which contain a or b -> so result should be 3 (Doc1, 2, 4)
I have really tried a lot (UNNEST, WITHIN, IN, ANY …) I could not get the correct result.
Last try was:
SELECT
*
FROM avl_dal_document_store_test
UNNEST Tag AS item
WHERE item.Text IN [‘a’, ‘b’]
but did not deliver the desired result as well Any ideas? TY