A ton of progress, search start
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
22
app/Services/Search/BookConfigurator.php
Normal file
22
app/Services/Search/BookConfigurator.php
Normal file
@ -0,0 +1,22 @@
|
||||
<?php
|
||||
namespace App\Services\Search;
|
||||
|
||||
use ScoutElastic\IndexConfigurator;
|
||||
|
||||
class BookConfigurator extends IndexConfigurator
|
||||
{
|
||||
// It's not obligatory to determine name. By default it'll be a snaked class name without `IndexConfigurator` part.
|
||||
protected $name = 'books';
|
||||
|
||||
// You can specify any settings you want, for example, analyzers.
|
||||
protected $settings = [
|
||||
'analysis' => [
|
||||
'analyzer' => [
|
||||
'es_std' => [
|
||||
'type' => 'standard',
|
||||
'stopwords' => '_spanish_'
|
||||
]
|
||||
]
|
||||
]
|
||||
];
|
||||
}
|
Reference in New Issue
Block a user