Skip to content

Commit

Permalink
Apply fixes from Duster
Browse files Browse the repository at this point in the history
  • Loading branch information
Jade-GG authored and actions-user committed Feb 1, 2024
1 parent 417978f commit fc0e1f5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Commands/ElasticsearchIndexer.php
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ public function indexItem(object $item, callable|array|null $dataFilter, callabl
public function prepare(string $indexName, array $mapping = [], array $settings = [], array $synonymsFor = []): void
{
data_set($settings, 'index.analysis.analyzer.default', [
'filter' => ['lowercase', 'asciifolding'],
'filter' => ['lowercase', 'asciifolding'],
'tokenizer' => 'standard',
]);

Expand All @@ -84,7 +84,7 @@ public function prepare(string $indexName, array $mapping = [], array $settings

data_set($settings, 'index.analysis.filter.synonym', ['type' => 'synonym', 'synonyms' => $synonyms]);
data_set($settings, 'index.analysis.analyzer.synonym', [
'filter' => ['lowercase', 'asciifolding', 'synonym'],
'filter' => ['lowercase', 'asciifolding', 'synonym'],
'tokenizer' => 'standard',
]);

Expand Down

0 comments on commit fc0e1f5

Please sign in to comment.