Answer the question
In order to leave comments, you need to log in
How to get "terms" for each document, after a full text search in MongoDB?
Good afternoon. Such a question, is it possible to somehow get for the documents found, which form was applied? Example:
db.collection.find({
$text: {
$search: "булочка"
}
})
булочка
and булочки
. But, can I get for each document these very "truncated" terms, according to which the search was made, similar to { score: { $meta: "textScore" }}
? Especially - this applies to cases where more than one term is used, but several separated by a space.
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question