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

Better validation for HashQParserPlugin

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Major
    • Resolution: Duplicate
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None

      Description

      The syntax for the HashQParserPlugin is

      fq={!hash workers=11 worker=4 keys=field1,field2}

      Today we don't make workers / worker mandatory. This means if a user doesn't specify them  worker and workers is 0 and you will get an java.lang.ArithmeticException: / by zero error

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                varun Varun Thacker
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: