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.
精彩评论