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

Better validation for HashQParserPlugin

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Duplicate
    • None
    • None
    • None
    • 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

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment