Re: Sorting and Empty (non-existing) Fields

2010-05-19 Thread Chris Hostetter
: Now I want to search something on the first field and want the results : sorted by relevance, then by the first field, then by the second field. first off: if your primary sort is on relevancy, there are going to be very few cases where your secondary sort comes into play -- the scoring form

Re: Sorting and Empty (non-existing) Fields

2010-05-18 Thread Rob Bygrave
BTW: Saw this in the SOLR docs... - If sortMissingLast="false" and sortMissingFirst="false" (the default), * then default lucene sorting will be used which places docs without the field first in an ascending sort and last in a descending sort.* On Wed, May 19, 2010 at 4

Re: Sorting and Empty (non-existing) Fields

2010-05-18 Thread Rob Bygrave
I'm not a Lucene Guru so hopefully you get a more definitive response. I believe this means you want a way to specify ... "Nulls High" / "Nulls Low" for your field (in this case you want Nulls High I believe). I haven't seen support for that (but it might exist). Looking at StringValComparator I'