Answer the question
In order to leave comments, you need to log in
How to limit the search depth in an array in MongoDB?
There is a field with tags
{[
"tag1",
"tag2",
"tag3",
"tag4",
"tag5"
]}
{
"$in": {
"tags": ['tag1', 'tag5']
}
}
Answer the question
In order to leave comments, you need to log in
Make 2 arrays, store the first 3 elements in the first one, and search for it.
It seems to me that you need to store not only tags, but also their weights.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question