0

I'm using Laravel Scout with the driver set as database to create a searchable knowlegde base.

The issue i've currently got it that I would like each word in the search term to be searched for an return all results that have any of the words rather than an exact match.

So for example:

search term: pay a bill

database records contain: pay my bill, how to pay a bill, paying my bill

With my current setup, it wont return any of these results as none of them match the exact term searched.

Is there anything I can do in Scout to make it loosely search each word?

I can achieve this by using whereFullText() but I wanted to keep this within Scout and using ::search() if possible.

0 Answers0