开发者

solr: multiply score with a field

Hopefully an easy question: I have added some docs to the index, where every doc has a field prio, which is an integer between 1 and 5. There is also a text field for fulltext search.

What I want: multiply the prio-value with the score value and order the docs by tha开发者_StackOverflowt result.

what I tried: this and that :) last thing was q=whatever _val_:"product(prio, score)" which didn't work (unknown field score)

Thanks for your help!


How about:

q={!boost b=field(prio)}whatever

References: field, BoostQParserPlugin.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜