search with minimum 4 character

Laraship QuestionsCategory: Configurationsearch with minimum 4 character
laraship Staff asked 6 years ago
How to search with 2 or 3 character Ex. https://www.domain.com/shop?search=ola —-> It Not Work Now not found and can search with minimum 4 character Ex. https://www.domain.com/shop?search=olay —> It Work can found
1 Answers
Best Answer
laraship Staff answered 6 years ago

Hello,

This is related to your mysql server text indexing configuration, you can refer to this link for more details

https://dba.stackexchange.com/questions/76036/mysql-fulltext-search-on-string-shorter-than-3-chars-returns-no-rows

once you made the changes to your MySQL Server you need to rebuild the search index using the command below

php artisan corals-search:all Corals\Modules\Ecommerce\Models\Product