Lucene Elasticsearch函数_分数不在解释结果中
我正在尝试使函数得分正常工作,但它似乎被忽略。以下是我的查询:Lucene Elasticsearch函数_分数不在解释结果中,lucene,elasticsearch,Lucene,elasticsearch,我正在尝试使函数得分正常工作,但它似乎被忽略。以下是我的查询: { "explain" : true, "query": { "function_score": { "functions": [ { "script_score": { "script": "_score * 999 * doc['total_digital_items_sold'].value" } }
{
"explain" : true,
"query": {
"function_score": {
"functions": [
{
"script_score": {
"script": "_score * 999 * doc['total_digital_items_sold'].value"
}
}
],
"query": {
"filtered": {
"query": {
"query_string": {
"query": "photo",
"fields": [ "title^3" ],
"use_dis_max": true,
"analyzer": "snowball"
}
},
"filter": { "and": [ { } ] }
}
}
}
}
}
}
它似乎不会影响结果,也不会出现在解释中。关于我做错了什么,你有什么想法吗?你在“解释”输出中看到了什么?你能提供你的映射吗?更重要的是,这个问题还有待解决吗?