I have documents like this
{
Name: "some data"
Another: " a lots of data in string"
Another: "string data here too
}
And have an array
Keyword = ["key1", "key2", .."keyn"]
I want to run a query such that it returns the documents if any of keyword from array matches the word from document's name or another or another or any other string value. Doesn't require exact word.
I have tried $in b return results m if the value is exactly matched.
And i have tried $search which doesn't require exact match but it won't accept array as an argument..
Is there any combine way to pass array as an argument without exact string matching.
Note: its not necessary to match all the keywords from the array. If single keywords match . It should return the results.
Thanks.