teamtnt / laravel-scout-tntsearch-driver

Driver for Laravel Scout search package based on https://github.com/teamtnt/tntsearch
MIT License
1.1k stars 144 forks source link

Search issue #140

Closed powolnymarcel closed 3 months ago

powolnymarcel commented 6 years ago

Hello,

I would like to search for the entire string, not for different words in a string:

Example : When I search for => "the little red car" the search will execute and search in each model for "the" + "little" + "red" + car +

I would like to search each model and only find articles that match exactky

I would like to search each model and only find articles that match exactky "the little red car".

Is it possible ?

stokic commented 6 years ago

Yes, see https://github.com/teamtnt/laravel-scout-tntsearch-driver/issues/139. In short, enable boolean search in config

dily86 commented 6 years ago

Just add 'searchBoolean' =>true in the array tntsearch in config/scout.php

'tntsearch' => [
    'storage'  => storage_path(),
    'searchBoolean' =>true
],