I have indexed documents that contain a field name
with a string value:
[
{
"fruits": [
{
"name": "apple",
"color": "red"
},
{
"name": "banana",
"color": "yellow"
}
]
},
{
"fruits": [
{
"name": "grape",
"color": "purple"
},
{
"name": "orange",
"color": "orange"
},
{
"name": "pear",
"color": "green"
}
]
}
]
I have a list of strings in my code:
["apple", "pineapple", "grape", "orange", "pear"]
I want to search for documents that contain a value in the field name
that is not present in that list. In this case only the first document would be the result as "banana" is missing.
How can I do that?
Thanks