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

TermsFacetMap.setLimit() unnecessarily rejects negative parameter value

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Trivial
    • Resolution: Fixed
    • Affects Version/s: 8.2
    • Fix Version/s: 8.3
    • Component/s: SolrJ
    • Labels:
      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
          2 kB
          Munendra S N
        2. SOLR-13725.patch
          3 kB
          Munendra S N

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: