You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@lucene.apache.org by "Nguyễn Tiến sỹ (Jira)" <ji...@apache.org> on 2020/08/15 07:16:00 UTC
[jira] [Commented] (LUCENE-309) [PATCH]
IndexSearcher.search(query,filter,nDocs) accepts zero nDocs
[ 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-unsubscribe@lucene.apache.org
For additional commands, e-mail: issues-help@lucene.apache.org