Hi,
I want to able to have a custom sorting algorithm such that for each comparison 
of document results (A v B) I can rank them. i.e. writing a comparator like I 
would normally do in Java (Compares its two arguments for order. Returns a 
negative integer, zero, or a positive integer as the first argument is less 
than, equal to, or greater than the second).
In the comparator I want to be able to take into account the score of the 
results, as well as other fields in the documents.
I've looked at using things such as the score/boost/bf parameters etc, however, 
want the flexibility of being able to code the comparator, so I can do if 
conditions and such.
Is this possible? And if so what's the best way of doing this? I've upgraded to 
use the latest version of Solr 3.1, and of course for this use case would 
expect to have to build from source, in order to add custom source.
Or/and, when using the score/boost/bf parameters etc - is it possible to use 
the score parameter in functions, to say scale it between 0 and 1?
Thanks
Mike



                                          

Reply via email to