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

Collapsing on undefined field returns 500

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Trivial
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 7.6
    • Component/s: query parsers
    • Labels:
      None

      Description

      When collapsing is specified on the undefined field then, the response returned has status 500 instead of 400.

      This is because of wrapping of SolrException to RuntimeException
      https://github.com/apache/lucene-solr/blob/master/solr/core/src/java/org/apache/solr/search/CollapsingQParserPlugin.java#L377

      Then in request handler base, all RuntimeException are converted to SolrException with status 500

        Attachments

        1. SOLR-11956.patch
          12 kB
          Munendra S N
        2. SOLR-11956.patch
          10 kB
          Munendra S N
        3. SOLR-11956.patch
          2 kB
          Munendra S N

          Issue Links

            Activity

              People

              • Assignee:
                dsmiley David Smiley
                Reporter:
                munendrasn Munendra S N
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: