[ https://issues.apache.org/jira/browse/LUCENE-309?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17178175#comment-17178175 ]
Nguyễn Tiến sỹ commented on LUCENE-309: --------------------------------------- [~tsmatphanhtoken] > [PATCH] IndexSearcher.search(query,filter,nDocs) accepts zero nDocs > ------------------------------------------------------------------- > > Key: LUCENE-309 > URL: https://issues.apache.org/jira/browse/LUCENE-309 > Project: Lucene - Core > Issue Type: Bug > Components: core/search > Environment: Operating System: other > Platform: Other > Reporter: Paul Elschot > Assignee: Lucene Developers > Priority: Minor > Attachments: ASF.LICENSE.NOT.GRANTED--IndexSearcherPatch1.txt > > > 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 -- This message was sent by Atlassian Jira (v8.3.4#803005) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org For additional commands, e-mail: issues-h...@lucene.apache.org