: > 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
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
: 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
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
: 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
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
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
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
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
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]
10 matches
Mail list logo