2017 © Pedro Peláez
 

library laravel-fulltext-rebuild

Rebuilds MySQL FULLTEXT indexes

image

ucaka/laravel-fulltext-rebuild

Rebuilds MySQL FULLTEXT indexes

  • Thursday, June 15, 2017
  • by ucaka
  • Repository
  • 1 Watchers
  • 0 Stars
  • 401 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 6 % Grown

The README.md

About

This is a simple library for laravel that helps you rebuild fulltext indexes for MySQL. This is useful when you change innodb_ft_min_token_size property. You can find more info about MySQL fulltext index length here, (*1)

Always backup your database before doing manipulations to it., (*2)

Usage

You must include the library service provider inside config/app.php, (*3)

$providers = [
    ...
    Ucaka\FullTextRebuild\Providers\FullTextRebuildProvider::class,
]

The only thing that a service provider will do for you is register a command. If you prefer you can skip the provider and directly add the command \Ucaka\FullTextRebuild\Console\Commands\FullTextRebuild inside your app/Console/Kernel.php, (*4)

After you installed the command just run it, (*5)

php artisan mysql:fulltext:rebuild

If it's needed you can specify custom database connection with --connection or -c option, (*6)

php artisan mysql:fulltext:rebuild -c "custom_connection"

The Versions