搜索关键词: 关于
第一个结果和第四个结果中‘单位’都有匹配,
但第四个结果‘标题’也有匹配,正常要得结果肯定是在前面的。
是什么原因导致它的评分降低?求解
是查询语句问题?还是设置什么参数没设置好?
第一个结果和第四个结果中‘单位’都有匹配,
但第四个结果‘标题’也有匹配,正常要得结果肯定是在前面的。
是什么原因导致它的评分降低?求解
是查询语句问题?还是设置什么参数没设置好?
GET document/_search?explain=true
{
"query": {
"dis_max" : {
"tie_breaker" : 0.4,
"queries" : [
{
"match" : {
"文件标题" : {
"query" : "关于",
"operator" : "OR",
"prefix_length" : 0,
"max_expansions" : 50,
"fuzzy_transpositions" : true,
"lenient" : false,
"zero_terms_query" : "NONE",
"auto_generate_synonyms_phrase_query" : true,
"boost" : 5.0
}
}
},
{
"match" : {
"单位" : {
"query" : "关于",
"operator" : "OR",
"prefix_length" : 0,
"max_expansions" : 50,
"fuzzy_transpositions" : true,
"lenient" : false,
"zero_terms_query" : "NONE",
"auto_generate_synonyms_phrase_query" : true,
"boost" : 1.0
}
}
},
{
"match" : {
"类型" : {
"query" : "关于",
"operator" : "OR",
"prefix_length" : 0,
"max_expansions" : 50,
"fuzzy_transpositions" : true,
"lenient" : false,
"zero_terms_query" : "NONE",
"auto_generate_synonyms_phrase_query" : true,
"boost" : 1.0
}
}
},
{
"match" : {
"意见" : {
"query" : "关于",
"operator" : "OR",
"prefix_length" : 0,
"max_expansions" : 50,
"fuzzy_transpositions" : true,
"lenient" : false,
"zero_terms_query" : "NONE",
"auto_generate_synonyms_phrase_query" : true,
"boost" : 1.0
}
}
},
{
"match" : {
"来文号" : {
"query" : "关于",
"operator" : "OR",
"prefix_length" : 0,
"max_expansions" : 50,
"fuzzy_transpositions" : true,
"lenient" : false,
"zero_terms_query" : "NONE",
"auto_generate_synonyms_phrase_query" : true,
"boost" : 1.0
}
}
},
{
"match" : {
"来文编号" : {
"query" : "关于",
"operator" : "OR",
"prefix_length" : 0,
"max_expansions" : 50,
"fuzzy_transpositions" : true,
"lenient" : false,
"zero_terms_query" : "NONE",
"auto_generate_synonyms_phrase_query" : true,
"boost" : 1.0
}
}
}
],
"boost" : 1.0
}
}
}
"mappings": {
"doc": {
"properties": {
"单位": {
"analyzer": "ik_smart",
"type": "text"
},
"公文类型": {
"type": "text","fields": {
"keyword": {
"ignore_above": 256,"type": "keyword"}}},
"来文号": {
"analyzer": "ik_smart",
"type": "text"
},
"办结日期": {
"type": "long"
},
"登记日期": {
"type": "long"
},
"文件标题": {
"analyzer": "ik_smart",
"type": "text"
},
"意见": {
"analyzer": "ik_smart",
"type": "text"
},
"来文编号": {
"analyzer": "ik_smart",
"type": "text"
},
"类型": {
"analyzer": "ik_smart",
"type": "text"
}
}
}
},
3 个回复
medcl - 今晚打老虎。
赞同来自: derobukal
zev
赞同来自:
yayg2008
赞同来自: