Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-13725

TermsFacetMap.setLimit() unnecessarily rejects negative parameter value

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Trivial
    • Resolution: Fixed
    • 8.2
    • 8.3
    • SolrJ
    • None

    Description

      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.

      Attachments

        1. SOLR-13725.patch
          3 kB
          Munendra S N
        2. SOLR-13725.patch
          2 kB
          Munendra S N

        Activity

          People

            munendrasn Munendra S N
            Richard.Walker@ands.org.au Richard Walker
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: