On Sat, Jan 31, 2009 at 6:20 PM, fei dong <dongfei...@gmail.com> wrote:

> Thank you very much! Your suggestion helps me a lot. After adding the
> copyField, solr need to be re-indexed.
>
> Here is another problem. I have a links_no field in solr index which means
> how many download links this song has. I want to integrate the text
> relevance with the links_no. ie:
> mp3^5 artist album^0.4 (links_no desc)^1.2
>
> should I re-define the boost function? How can I get this effect
>

A FunctionQuery can help. Look at http://wiki.apache.org/solr/FunctionQuery

Try using the scale and the product function. Scale links_no to a suitable
range and then use multiply it with the boost.

-- 
Regards,
Shalin Shekhar Mangar.

Reply via email to