On Mar 30, 2009, at 1:07 PM, Shalin Shekhar Mangar 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
What did you have in mind, Shalin? It seems to me you would have to
hook into the HitCollector and/or implement your own sorting
capability, as the Func Query is just going to allow you to take price
in as a scoring factor, no?
-Grant