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

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

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 7.2
    • query parsers
    • 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

        1. SOLR_11501_limit_local_params_parsing.patch
          16 kB
          David Smiley
        2. SOLR_11501_limit_local_params_parsing.patch
          27 kB
          David Smiley
        3. SOLR-11501-breaker.patch
          1 kB
          Mikhail Khludnev

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: