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

Unable to parse local params followed by parenthesis like {!lucene}(gigabyte)

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Won't Fix
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: query parsers
    • Labels:

      Description

      Solr 4.5

      /select?defType=edismax&q={!lucene}(foo)&debugQuery=true

      goes like

       

       <str name="rawquerystring">\{!lucene}(foo)</str>
       <str name="parsedquery_toString">content:foo</str>
       <str name="QParser">LuceneQParser</str>
      

      fine

      Solr 8.2

      with luceneMatchVersion=4.5 following SOLR-11501 I know it's a grey zone but it's a question of migrating existing queries.

      /select?defType=edismax&q={!lucene}(foo)&debugQuery=true

      goes like

      "querystring":"\{!lucene}(foo)",
       "parsedquery":"+DisjunctionMaxQuery(((Project.Address:lucene Project.Address:foo) | (Project.OwnerType:lucene Project.OwnerType:foo) 
       "QParser":"ExtendedDismaxQParser",
      

      blah...
      but removing braces in 8.2 works perfectly fine

      "querystring":"\{!lucene}foo",
       "parsedquery":"+content:foo",
       "parsedquery_toString":"+content:foo",
       "QParser":"ExtendedDismaxQParser",
       

        Attachments

        1. SOLR-14557.patch
          1 kB
          Mikhail Khludnev
        2. SOLR-14557.patch
          30 kB
          Mikhail Khludnev
        3. SOLR-14557.patch
          61 kB
          Mikhail Khludnev

          Issue Links

            Activity

              People

              • Assignee:
                mkhl Mikhail Khludnev
                Reporter:
                mkhl Mikhail Khludnev
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: