babenkoivan / elastic-migrations

Elasticsearch migrations for Laravel
MIT License
188 stars 32 forks source link

Support for Normalyzers #50

Closed nw-mjl closed 1 year ago

nw-mjl commented 1 year ago

I might be missing it, but I do not see support for $settings->nomalizer. Is this the case? If so do you think it could be added?

babenkoivan commented 1 year ago

Hi @nw-mjl,

normalizer belongs to the analysis section of index settings and can be defined as follows:

$settings->analysis([
        'normalizer' => [
            'my_normalizer' => [
                'type' => 'custom',
                'char_filter' => [],
                'filter' => ['lowercase', 'asciifolding']
            ]
        ]
]);
nw-mjl commented 1 year ago

Great thanks for the reply.

github-actions[bot] commented 1 year ago

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 7 days