#### Laravel mongoDB partial search

Trying to make a partial search on an indexed field.
I use Laravel 6.9.

I ‘ve created a field for every document in my collection that consists of the data of 5 other fields seperated with a ~.
I use a whereraw to query the database whereRaw(array('$text'=>array('$search'=> """ . \$term . """)))