Re: Sorting on a field that can have null values

2007-05-10 Thread Chris Hostetter
: But how can you use both the MissingStringLastComparatorSource and also your : own custom SortComparator (i.e. having a custom getComparable() method)? : : I have tried the obvious, which was to make my custom SortComparator extend : MissingStringLastComparatorSource instead of SortComparator. B

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 > :

Re: Sorting on a field that can have null values

2007-04-13 Thread Peter Keegan
excluding them completely is a slightly differnet task, you don't need to index a special marker value, you can just use a RangeFilter (or ConstantScoreRangeQuery) to ensure you only get docs with a value for that field (ie: field:[* TO *]) Excellent, this is a much better solution. BTW, adding

Re: Sorting on a field that can have null values

2007-04-12 Thread Chris Hostetter
: 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 : TestSort.java: : The actual order of the