I think what you want to do is add in a function query that gives
values in that range.

There is no need to round the scores. That doesn't do anything
but throw away information.

wunder

On 3/30/09 10:07 AM, "Shalin Shekhar Mangar" <shalinman...@gmail.com> wrote:

> On Mon, Mar 30, 2009 at 10:04 PM, squaro <marclebe...@gmail.com> wrote:
> 
>> 
>> Hello,
>> 
>> I would like to cut solr score to 3 or 4 digits .
>> Indeed I would like to be able to sort by score, then by another critria (
>> price for example).
>> So if two docs have score of 1.67989 and 1.6767, I would like to sort them
>> by price.
>> 
>> Do you have any idea how I could do that ?
> 
> 
> I don't there there is an existing way to round them. But it will be a
> useful contribution if you can write a function query for rounding.
> 
> Look at http://wiki.apache.org/solr/FunctionQuery

Reply via email to