A
A
Alexander2020-01-15 16:11:13
elasticsearch
Alexander, 2020-01-15 16:11:13

How to work with Russian morphology in Elasticsearch?

There was already a similar question, but now, in the latest version , the russian_morphology filter is not available, as far as I understand. Therefore, the question is - how to cook it now? I have it like this now, but it works very badly with endings:

'body' => [
        'settings' => [ 
            'number_of_shards' => 1,
            'number_of_replicas' => 0,
            'analysis' => [ 
                'filter' => ['shingle' => [ 'type' => 'shingle']],
                'analyzer' => [
                    'texter' => [
                        'type' => 'custom',
                        'tokenizer' => 'standard',
                        'filter' => ['lowercase', 'snowball', 'elision' ]
                    ]
                ]
            ]
        ],

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander, 2020-01-15
@Captain

If anyone is interested, now it is fashionable to do this using hunspell in the /etc/elasticsearch/config/hunspell/ru_RU
https://www.elastic.co/guide/en/elasticsearch/guid...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question