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 -- Regards, Shalin Shekhar Mangar.