mirror of
https://github.com/AnimeThemes/animethemes-server.git
synced 2026-07-11 01:24:46 +02:00
27 lines
591 B
PHP
27 lines
591 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace App\Concerns\Elastic;
|
|
|
|
use Elastic\Adapter\Indices\Settings;
|
|
|
|
trait ConfiguresTextAnalyzers
|
|
{
|
|
protected function configureTextAnalyzers(Settings $settings): void
|
|
{
|
|
$settings->analysis([
|
|
'analyzer' => [
|
|
'name_search' => [
|
|
'type' => 'custom',
|
|
'tokenizer' => 'standard',
|
|
'filter' => [
|
|
'lowercase',
|
|
'word_delimiter_graph',
|
|
],
|
|
],
|
|
],
|
|
]);
|
|
}
|
|
}
|