TimeLimitingCollector's TimeExceededException contains useless relative docid
-----------------------------------------------------------------------------
Key: LUCENE-2549
URL: https://issues.apache.org/jira/browse/LUCENE-2549
Project: Lucene - Java
Issue Type: Bug
Affects Versions: 3.0.2, 3.0.1, 3.0, 2.9.3, 2.9.2, 2.9.1, 2.9, 3.1, 4.0
Reporter: Uwe Schindler
Assignee: Uwe Schindler
We found another bug with the RandomIndexWriter: When TimeLimitingCollector
breaks collection after timeout, it records the last/next collected docid. It
does this without rebasing, so the docid is useless. TestTimeLimitingCollector
checks the docid, but correctly rebases it (as only this makes sense). Because
the RandomIndexWriter uses different merge settings, the index is now sometimes
not optimized and so the test fails (which is correct, as the docid is useless
for non-optimized index).
Attached is a patch that fixes this. Please tell me if I should backport to 2.9
and 3.0!
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]