MongoDB Exception – yii\mongodb\Exception
text index required for $text query
↵
Caused by: MongoDB\Driver\Exception\RuntimeException
text index required for $text query
in D:\wamp64\www\eshop\vendor\yiisoft\yii2-mongodb\src\Command.php at line 286
in D:\wamp64\www\eshop\vendor\yiisoft\yii2-mongodb\src\Command.php at line 615 – yii\mongodb\Command::query('full_search_product_en', ['sort' => ['search_score' => ['$meta' => 'textScore'], 'score' => -1], 'limit' => 1000, 'projection' => ['search_score' => ['$meta' => 'textScore'], 'id' => true, 'spu' => true, 'score' => true, ...]])
in D:\wamp64\www\eshop\vendor\fancyecommerce\fecshop\services\Search.php at line 122 – fecshop\services\Service::__call('getSearchProductColl', [['product_id', 'sku', 'spu', 'name', ...], ['$text' => ['$search' => '444']], 1, 30, ...])