Sorting with custom SortComparator

2007-04-25 Thread Theodan
Hello. I am trying to sort my query results on a String field called "AssetType" and then on the relevancy score, but I need a particular ordering of the possible values in "AssetType" (i.e. first "Video", then "Article", etc.). I have tried doing this with a custom SortComparator that returns I

Re: Sorting with custom SortComparator

2007-04-27 Thread Theodan
Never mind. The sorting was working correctly. I was just misinterpretting the results I was seeing. -Theo Theodan wrote: > > Hello. > > I am trying to sort my query results on a String field called "AssetType" > and then on the relevancy score, but I need a p

Re: Sorting on a field that can have null values

2007-05-09 Thread Theodan
Chris Hostetter wrote: > > > : If i rememebr correctly (you'll have to test this) sorting on a field > : which doesn't exist for every doc does what you would want (docs with > : values are listed before docs without) > > : The actual behavior is different than described above. I modified > :