如何通过文档的字段值之一提高字段分数?

时间:2018-11-27 09:20:28

标签: solr lucene

我知道我可以给name^5来提高该字段的得分,但我希望从文档中获取该提高值。

对于以下文档,我想将name字段的分数提高5(字段name_weight的值)

{ "id":"IW-02", "name":"iPod & iPod Mini USB 2.0 Cable", "manu":"Belkin", "manu_id_s":"belkin", "cat":["electronics", "connector"], "features":["car power adapter for iPod, white"], "weight":2.0, "price":11.5, "price_c":"11.50,USD", "popularity":1, "inStock":false, "name_weight": 5 }

0 个答案:

没有答案