In case of text search,
$text performs a text search on the content of the fields indexed with a text index. A $text expression has the following syntax:
{
$text:
{
$search: <string>,
$language: <string>,
$caseSensitive: < boolean>,
$diacriticSensitive: < boolean>
}
}
and In case of normal search,it uses PCRE (Perl Compatible Regular Expression) means Unlike text search, we do not need to do any configuration or command to use regular expressions.
1. https://docs.mongodb.org/manual/reference/operator/query/text/
2. http://www.tutorialspoint.com/mongodb/mongodb_regular_expression.htm