On Tue, Mar 15, 2011 at 10:35 AM, MOuli <zar...@hotmail.de> wrote:
> I want so sort ASC on a price field, but some of the docs got a 0 (not NULL)
> value. Now I want that this docs are at the end when i sort the price field
> ascending. Is it possible?

In 3.1 and trunk (4.0-dev), you could sort by a function query that
maps values of 0 to something very large.

sort=map(price,0,0,999999) asc

This should map anything with a price between 0 and 0 to 999999 for
the purposes of sorting.

http://wiki.apache.org/solr/FunctionQuery

-Yonik
http://lucidimagination.com

Reply via email to