Karl,
If you get this one figured out, I'd be very happy. Unless I replace
the line reading
throw new RuntimeException("Unexpected: ordered");
with this one
return false;
I see plenty of these exceptions being thrown. I look forward to how
this plays out and if you are able to come up with a solution!
Mike
P.S. This change was mentioned in a previous thread:
http://mail-archives.apache.org/mod_mbox/lucene-java-dev/200601.mbox/[EMAIL PROTECTED]
karl wettin wrote:
I don't understand what it means when this exception is thrown. I'm
quite certain that it is my skipTo(target)-code that causes it , but I
don't understand why. The FIXME and error message makes me think it
might be that I deliver the data ordered and it was not expected to be?
private boolean firstNonOrderedNextToPartialList() throws IOException {
/* Creates a partial list consisting of first non ordered and
earlier.
* Returns first non ordered .next().
*/
last = first = null;
int orderedIndex = 0;
while (queue.top() != null) {
SpansCell cell = (SpansCell)queue.pop();
addToList(cell);
if (cell.index == orderedIndex) {
orderedIndex++;
} else {
return cell.next();
// FIXME: continue here, rename to eg. checkOrderedMatch():
// when checkSlop() and not ordered, repeat cell.next().
// when checkSlop() and ordered, add to list and repeat
queue.pop()
// without checkSlop(): no match, rebuild the queue from the
partial list.
// When queue is empty and checkSlop() and ordered there is a
match.
}
}
throw new RuntimeException("Unexpected: ordered");
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]