> --- On Mon, 3/14/11, Denis Kuzmenok <forward...@ukr.net> wrote:

>> From: Denis Kuzmenok <forward...@ukr.net>
>> Subject: Solr sorting
>> To: solr-user@lucene.apache.org
>> Date: Monday, March 14, 2011, 10:23 AM
>> Hi.
>> Is there any way to make such scheme working:
>> I  have  many  documents,  each 
>> has  a  random field to enable random
>> sorting,  and  i  have  a weight
>> field.
>> I  want to get random results, but documents with
>> bigger weight should
>> appear more frequently.


> You can use http://wiki.apache.org/solr/FunctionQuery
> An example can be : &sort=product(random_123,weight)
> But this requires solr3.1 or trunk.
> With 1.4.1 you can use _val_ hook :
> &q=_val_:"product(random_78,weight)"

Tried  this.  Tried  to make query with one category on documents. Top
documents  have  weight  about 1700, 1000, 800, 600. And therefore top
document  always  hits  in  top  position  :(  There  should  be  some
limitations or something for the weight field values, i guess..




Reply via email to