Re: Sorting case-insensitively

2008-07-18 Thread Chris Hostetter
: > if you could submit a test case that ... : See my e-mail dated July 3, 2008. Sorry: i ment open a bug (in Jira) and submit a JUnit test case. I also ment something even simpler so the lower casing doesn't confuse the issue ie: class IdentitySortComparator extends SortCompar

Re: Sorting case-insensitively

2008-07-14 Thread Paul J. Lucas
On Jul 10, 2008, at 2:24 PM, Chris Hostetter wrote: if you could submit a test case that reproduces this using a trivial subclass (just return the orriginal String as the Comparable) that can help us verify the bug and the fix. See my e-mail dated July 3, 2008. Assuming i'm right, I don'tr

Re: Sorting case-insensitively

2008-07-10 Thread Chris Hostetter
: But how does the built-in STRING sort work with null values then? And how do : I make a SortComparitor that works? Built in string sorting uses FieldCache.DEFAULT.getStringIndex() ... any doc without a value ends up without an assignment in StringIndex.order[], so it gets the default value o

Re: Sorting case-insensitively

2008-07-10 Thread Paul J. Lucas
On Jul 9, 2008, at 10:14 PM, Chris Hostetter wrote: I'm going to guess you have a doc where that field doesn't have a value. ordinarily that's fine, but maybe SortComparator doesn't handle that case very well. But how does the built-in STRING sort work with null values then? And how do I

Re: Sorting case-insensitively

2008-07-09 Thread Chris Hostetter
: But when my code runs, I get a NullPointerException in Lucene's : SortComparator, : line 54 which reads: : : return cachedValues[i.doc].compareTo (cachedValues[j.doc]); : : because cachedCalues[i.doc] is null. But why is it null? I'm going to guess you have a doc where that field doesn

Re: Sorting case-insensitively

2008-07-04 Thread Paul J . Lucas
On Jun 30, 2008, at 8:08 PM, Paul J. Lucas wrote: On Jun 30, 2008, at 8:55 PM, Paul J. Lucas wrote: If I have a SortField with a type of STRING, is there any way to sort in a case-insensitive manner? Couldn't I also use a custom SortComparator? OK, so I tried that by doing: SortFi

Re: Sorting case-insensitively

2008-07-01 Thread Erik Hatcher
On Jun 30, 2008, at 11:08 PM, Paul J. Lucas wrote: On Jun 30, 2008, at 7:00 PM, Erik Hatcher wrote: On Jun 30, 2008, at 8:55 PM, Paul J. Lucas wrote: If I have a SortField with a type of STRING, is there any way to sort in a case-insensitive manner? Only if you unify the case (lower case

Re: Sorting case-insensitively

2008-06-30 Thread Paul J. Lucas
On Jun 30, 2008, at 7:00 PM, Erik Hatcher wrote: On Jun 30, 2008, at 8:55 PM, Paul J. Lucas wrote: If I have a SortField with a type of STRING, is there any way to sort in a case-insensitive manner? Only if you unify the case (lower case everything) on the client side that you send to Solr

Re: Sorting case-insensitively

2008-06-30 Thread Erik Hatcher
On Jun 30, 2008, at 8:55 PM, Paul J. Lucas wrote: If I have a SortField with a type of STRING, is there any way to sort in a case-insensitive manner? Only if you unify the case (lower case everything) on the client side that you send to Solr, but in general no. You can use a text field ty

Sorting case-insensitively

2008-06-30 Thread Paul J. Lucas
If I have a SortField with a type of STRING, is there any way to sort in a case-insensitive manner? - Paul - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]