mongoDB prefix wildcard: fulltext-search ($text) find part with search-string

It’s not possible to do it with $text operator.

Text indexes are created with the terms included in the string value or in an array of strings and the search is based in those indices.

You can only group terms on a phrase but not take part of them.

Read $text operator reference and text indexes description.

Leave a Comment