U
U
un1t2015-08-04 17:13:49
elasticsearch
un1t, 2015-08-04 17:13:49

Elasticsearch - in some places it looks strange, why is that?

On request "ev", is "spruce". The rest of the queries seem to be fine.
Russian morphology plugin installed https://github.com/imotov/elasticsearch-analysis-m...
mapping

'properties': {
            'id': {'type': 'integer'},
            'name': {'type': 'string', 'analyzer': 'russian_morphology'},
        }

curl -XPOST 'http://localhost:9200/myindex/tags/_search' -d '{"query": 
                               {"match": {"name": "ев"}}}'

{
    "_shards": {
        "failed": 0,
        "successful": 5,
        "total": 5
    },
    "hits": {
        "hits": [
            {
                "_id": "1160",
                "_index": "myindex",
                "_score": 5.7484603,
                "_source": {
                    "id": 1160,
                    "name": "ели"
                },
                "_type": "tag"
            }
        ],
        "max_score": 5.7484603,
        "total": 1
    },
    "timed_out": false,
    "took": 5
}

Answer the question

In order to leave comments, you need to log in

2 answer(s)
G
gulitskiy, 2015-08-05
@gulitskiy

analyzer settings and mapping show

U
un1t, 2015-08-07
@un1t

Answer https://github.com/AKuznetsov/russianmorphology/is...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question