0

以下を使用して、ElasticSearch 0.19.11 に次のドキュメントがあります。

{ "title": "dogs species",
    "col_names": [ "name", "description", "country_of_origin" ],
    "rows": [
        { "row": [ "Boxer", "good dog", "Germany" ] },
        { "row": [ "Irish Setter", "great dog", "Ireland" ] }
    ]
}
{ "title": "Misc stuff",
    "col_names": [ "foo" ],
    "rows": [
        { "row":    [ "Setter is impotant" ] },
        { "row":     [ "Ireland is green" ] }
    ]
}

マッピングは次のとおりです。

{
    "table" : {
        "properties" : {
            "title" : {"type" : "string"},
            "col_names" : {"type" : "string"},
            "rows" : {
                "properties" : {
                    "row" : {"type" : "string"}
                }
            }
        }
    }
}

質問:「Ireland Setter」を検索していますが、同じ行に検索用語が含まれるドキュメントのスコアを高くする必要があります。

現在、2 番目のドキュメントのスコアは 0.22 ですが、最初のドキュメントのスコアは 0.14 です。

この場合、同じ行に「Ireland」と「Setter」の両方が含まれているため、最初のドキュメントのスコアを高くしたいと考えています。どうすればそれができますか?

4

1 に答える 1

1

ElasticSearch google-group メンバーの多大な協力により、解決策が見つかりました。ディスカッションへのリンクは次のとおりです: https://groups.google.com/forum/?fromgroups#!topic/elasticsearch/4O9dff2SNhg

于 2012-11-18T08:16:06.313 に答える