Search code examples
full-text-indexing

Mongodb text index search using refrence document inside of the text indexed document


I have a shop document that has a reference for a product docuemnt

shop:{
product_id:ObjectId(...)
.
.
.
}

how to use text index for product document fields inside of shop


Solution

  • The answer to my question was, there is no such a way to use text indexing for refrenced documents.

    which leads to embedding them inside of the document we wish to apply text-indexing for