You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@lucene.apache.org by "Munendra S N (Jira)" <ji...@apache.org> on 2019/09/16 17:42:00 UTC

[jira] [Updated] (SOLR-13725) TermsFacetMap.setLimit() unnecessarily rejects negative parameter value

     [ https://issues.apache.org/jira/browse/SOLR-13725?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Munendra S N updated SOLR-13725:
--------------------------------
    Attachment: SOLR-13725.patch

> TermsFacetMap.setLimit() unnecessarily rejects negative parameter value
> -----------------------------------------------------------------------
>
>                 Key: SOLR-13725
>                 URL: https://issues.apache.org/jira/browse/SOLR-13725
>             Project: Solr
>          Issue Type: Bug
>      Security Level: Public(Default Security Level. Issues are Public) 
>          Components: SolrJ
>    Affects Versions: 8.2
>            Reporter: Richard Walker
>            Priority: Trivial
>         Attachments: SOLR-13725.patch
>
>
> SolrJ's {{TermsFacetMap.setLimit(int maximumBuckets)}} rejects a negative parameter value with an IllegalArgumentException "Parameter 'maximumBuckets' must be non-negative".
> But a negative value for the limit parameter is accepted by Solr server, and is meaningful: i.e., it means "no limit".
> The {{setLimit()}} method shouldn't reject a negative parameter value.



--
This message was sent by Atlassian Jira
(v8.3.2#803003)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@lucene.apache.org
For additional commands, e-mail: issues-help@lucene.apache.org