I made a search box to search words but I would like that when I search more than one words will only show that specific words not every single word.
For example if I write:
House
it work and my search find all houses
but if I search The House
It will find all the words that are The and House and not only “The house”
I installed this plugin and set $site->bettersearch($query, 'title|text'). I get an error in my results template saying $result->title() or $result->url() are null.
When I dump $result, I get :
There is no $site->bettersearch()method, but a $pages->bettersearch() method. So if you replace that, it should work. For a site wide search, you probably have to use $site->index()->bettersearch().