Here is the model \'Class\' model for which I have created the \"text\" index for \'keywords\',\'lifeArea\',\'\'type\'.
Structure of the model:
{
First of all I don't think you can use $text in that manner, you need first to create a text index on the collection then you can use it but without specifying any field because it works on indexes not fields.
$text
Please check here: http://docs.mongodb.org/manual/administration/indexes-text/