How can i change the score


(LDA) #1

this is my input text.

and the result..


this is not what i want! i think the 'last ' should in first ,
how can i change the score
this is the tf-idf
"hits" : {
"total" : 4353,
"max_score" : 2.576459,
"hits" : [ {
"_shard" : 0,
"_node" : "7f44fuF8RtKFIgtN1ww_KQ",
"_index" : "indicator_v2",
"_type" : "indicator_v2",
"_id" : "00010000862572",
"_score" : 2.576459,
"_source":{"indicatorCode":"00010000862572","nameZh":"蛋类(元)","nameEn":"蛋类(元)","cpnNameZh":"城镇最低收入户居民家庭人均蛋类现金消费总支出(元)","mgNameZh":"人民生活--城镇居民基本生活状况--城镇居民收入与支出(抽样数据)--城镇居民平均支出--按收入等级分城镇居民家庭支出--城镇居民家庭支出金额--最低收入户--平均每人现金消费总支出(元)--食品(元)--蛋类(元)","parentId":null,"freqId":1,"startDate":"1995-01-01 00:00:00","lastDate":"2012-01-01 00:00:00","cubeId":1,"isValid":0,"descZh":null,"commentZh":null,"sourceZh":"中国统计年鉴","orgZh":"中国国家统计局","addTime":null,"lastMtime":null,"typeId":"0902","typeName":"消费","tag":[{"tagId":"4291","tagName":"城镇居民平均支出"},{"tagId":"4292","tagName":"平均每人现金消费总支出"},{"tagId":"5562","tagName":"食品"},{"tagId":"8269","tagName":"城镇居民收入与支出"},{"tagId":"9566","tagName":"城镇居民基本生活状况"},{"tagId":"10919","tagName":"按收入等级分城镇居民家庭支出"},{"tagId":"10920","tagName":"城镇居民家庭支出金额"},{"tagId":"10921","tagName":"蛋类"},{"tagId":"12215","tagName":"人民生活"},{"tagId":"12243","tagName":"最低收入户"}]},
"highlight" : {
"nameZh" : [ "<em style="color:#ff8a61">蛋类(元)" ]
},
"_explanation" : {
"value" : 2.576459,
"description" : "product of:",
"details" : [ {
"value" : 5.152918,
"description" : "sum of:",
"details" : [ {
"value" : 2.3387063,
"description" : "weight(nameZh:蛋类 in 364) [PerFieldSimilarity], result of:",
"details" : [ {
"value" : 2.3387063,
"description" : "score(doc=364,freq=1.0), product of:",
"details" : [ {
"value" : 0.4252728,
"description" : "queryWeight, product of:",
"details" : [ {
"value" : 10.998617,
"description" : "idf(docFreq=39, maxDocs=879841)"
}, {
"value" : 0.038666025,
"description" : "queryNorm"


(Shaunak Kashyap) #2

I've recategorized this post into the "Elastic In Your Native Tongue > 中文提问与讨论" category. I think it may help get you a response sooner.


(Medcl) #3

能提供一下你的查询QueryDSL么?我看看你是怎么写的,另外你的mapping是如何配置analyzer的,mapping方便也贴一下。


(system) #4