Re: Strange sort error

2005-04-14 Thread Yonik Seeley
I haven't tried it, but I think the fix should be easy... never throw that exception. Either check for null before the loop, or in the loop. Original code for native int sorting: TermEnum termEnum = reader.terms (new Term (field, )); try { if (termEnum.term() == null)

Re: Strange sort error

2005-04-14 Thread Daniel Naber
On Thursday 14 April 2005 16:28, Yonik Seeley wrote: I haven't tried it, but I think the fix should be easy... never throw that exception. As Lucene does not have the concept of a warning I think it should throw exceptions when someone tries to do something that doesn't make sense (even if

Re: Strange sort error

2005-04-13 Thread Daniel Naber
On Tuesday 12 April 2005 20:04, Bill Tschumy wrote: Here is a small program that will manifest the error. Hopefully someone can explain the problem. It happens with Lucene 1.4.2 and 1.4.3. This is the code that throws the exception (from FieldCacheImpl.java): TermEnum termEnum =