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

Depending on the parser, QParser should not parse local-params

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 7.2
    • Component/s: query parsers
    • Labels:
      None

      Description

      Solr should not parse local-params (and thus be able to switch the query parser) in certain circumstances. Perhaps it is when the QParser.getParser is passed "lucene" for the defaultParser? This particular approach is just a straw-man; I suspect certain valid embedded queries could no longer work if this is done incorrectly. Whatever the solution, I don't think we should assume 'q' is special, as it's valid and useful to build up queries containing user input in other ways, e.g. q= +field:value +{!dismax v=$qq}&qq=user input and we want to protect the user input there similarly from unwelcome query parsing switching.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                dsmiley David Smiley
                Reporter:
                dsmiley David Smiley
              • Votes:
                0 Vote for this issue
                Watchers:
                10 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: