Elasticsearch не возвращает ближайший матч - PullRequest
0 голосов
/ 13 марта 2020

Наивысшая оценка эластичного поискового значения выше, чем оценка ближайшего совпадения. Почему?

========================================================

Input Query: - 

{
    "query": {
        "bool": {
            "must": {
                "match": {
                    "countryCode": "AR"
                }
            },
            "should": {
                "match": {
                    "region": {
                        "query": "Neuquén"
                    }
                }
            }
        }
    }
}

========================================================

Output: - 

{
                "_index": "the_new_reg_index",
                "_type": "the_reg_index",
                "_id": "37",
                "_score": 10.426102,
                "_source": {
                    "countryName": "Argentina",
                    "countryCode": "AR",
                    "region": "Neuquén - Plaza Huincul"
                }
            },
            {
                "_index": "the_new_reg_index",
                "_type": "the_reg_index",
                "_id": "35",
                "_score": 9.74388,
                "_source": {
                    "countryName": "Argentina",
                    "countryCode": "AR",
                    "region": "Neuquén"
                }
            }
========================================================

Почему 10,426102 балла для "Neuquén - Plaza Huincul" выше, чем балл = 9,74388 для "Neuquén"? «Неукен» - ближайший матч, а не «Неукен - Плаза Уинкуль»

Спасибо, Абхишек

...