以下を使用して、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」の両方が含まれているため、最初のドキュメントのスコアを高くしたいと考えています。どうすればそれができますか?