Hello,
Apologies for my title. I did not know how to title this question.
I have the following docs.
doc1
{
"product_types": [
{
"id": 3
},
{
"id": 4
}
]
}
doc2
{
"product_types": [
{
"id": 3
},
{
"id": 6
}
]
}
doc3
{
"product_types": [
{
"id": 3
},
{
"id": 7
}
]
}
I’m trying to select docs that contain product type id 3 or 7.
I have the following query
select meta(bucket).id from bucket where any productType in product_types satisfies productType.id in [3,7] end limit 2;
this returns doc1 and doc2 because doc2 has id 3 as well.
Is there a way to make my query to return only doc1 and doc3?
my end goal is to have a list of documents with a given set of product type ids. In this case, [3,7]