Hi Mark, > I'm going to dig in more tonight I hope. The main issue is that using > SortType.AUTO blows up because the MultiSearcher code expects it already > to have been resolved to a sort type, but my hack kept that from > happening so it hits a switch statement for AUTO that throws an > exception. That shouldn't be a problem. The other issue is a weird > situation where it hits an INT switch statement when the sort type is > Byte and throws a class cast exception. I didn't have time to look into > anything, but I'm guessing its AUTO related as well. Both probably non > issues once I get time to do more.
Haha, the same bug I encountered when doing my LUCENE-1478 developments. The bug is in the comparator, it returns INT instead of BYTE in FieldSortedHitQueue. It is fixed in my patch for LUCENE-1478, which is currently under discussion, maybe we fix this before LUCENE-1478 in a separate patch/issue. But you can fix it simply, just correct it here in FieldSortedHitQueue.java (this is a copy from my patch): @@ -241,7 +257,7 @@ } public int sortType() { - return SortField.INT; + return SortField.BYTE; } }; } Uwe --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]