DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://issues.apache.org/bugzilla/show_bug.cgi?id=32227>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=32227 [PATCH] IndexSearcher.search(query,filter,nDocs) accepts zero nDocs Summary: [PATCH] IndexSearcher.search(query,filter,nDocs) accepts zero nDocs Product: Lucene Version: CVS Nightly - Specify date in submission Platform: Other OS/Version: Other Status: NEW Severity: Minor Priority: Other Component: Search AssignedTo: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] This caused an npe from the ht.top().score lateron. The root cause was a bug in a test case, which took more time to track down than would have been necessary with the attached patch. The patch throws an IllegalArgumentException for non positive nDocs. All current tests pass with the patch applied. Regards, Paul --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]