Re: Boosting documents based on the vote count

2010-10-20 Thread Alexandru Badiu
Thanks, will look into those. Andu On Mon, Oct 18, 2010 at 4:14 PM, Ahmet Arslan iori...@yahoo.com wrote: I know but I can't figure out what functions to use. :) Oh, I see. Why not just use {!boost b=log(vote)}? May be scale(vote,0.5,10)?

Boosting documents based on the vote count

2010-10-18 Thread Alexandru Badiu
Hello all, I have a field in my schema which holds the number of votes a document has. How can I boost documents based on that number? Something like the one which has the maximum number has a boost of 10, the one with the smallest number has 0.5 and in between the values get calculated

Re: Boosting documents based on the vote count

2010-10-18 Thread Ahmet Arslan
I have a field in my schema which holds the number of votes a document has. How can I boost documents based on that number? you can do it with http://wiki.apache.org/solr/FunctionQuery

Re: Boosting documents based on the vote count

2010-10-18 Thread Alexandru Badiu
I know but I can't figure out what functions to use. :) On Mon, Oct 18, 2010 at 1:38 PM, Ahmet Arslan iori...@yahoo.com wrote: I have a field in my schema which holds the number of votes a document has. How can I boost documents based on that number? you can do it with

Re: Boosting documents based on the vote count

2010-10-18 Thread Ahmet Arslan
I know but I can't figure out what functions to use. :) Oh, I see. Why not just use {!boost b=log(vote)}? May be scale(vote,0.5,10)?