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

JSON Query DSL doesn't work if defType isn't lucene

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 7.2
    • 9.4
    • query parsers
    • None

    Description

      If the JSON Query DSL is used (POSTing JSON), it requires that the default "lucene" query parser is used. If for some reason defType is set, like in the defaults section of the request handler, then this doesn't work. Internally, the JSON is rewritten to local-params syntax which requires the default parser, not another like edismax.

      This behavior broke in 7.2 when other parsers stopped processing local-params in the name of security.

      Attachments

        Issue Links

          Activity

            People

              dsmiley David Smiley
              dsmiley David Smiley
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 2h 10m
                  2h 10m