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

Error in proximity parsing when _query_ with complex phrase proceeds normal query containing proximity

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 6.0, 7.0.1
    • Fix Version/s: None
    • Component/s: query parsers
    • Labels:
      None
    • Environment:

      Ubuntu 16.04

      Description

      Lets say I am using a query like this:

       

      _query_:"{!complexphrase inOrder=false}\"ernst εταιρ* συμβουλ*\"" || "ey επενδυτικη"~10
      

      The result is not as expected.

      Using the debugger I can find that it transforms to it:

       

      "rawquerystring":"_query_:\"{!complexphrase inOrder=false}\\\"ernst εταιρ* συμβουλ*\\\"\" || \"ey επενδυτικη\"~10",
       "querystring":"_query_:\"{!complexphrase inOrder=false}\\\"ernst εταιρ* συμβουλ*\\\"\" || \"ey επενδυτικη\"~10",
       "parsedquery":"ComplexPhraseQuery(\"ernst εταιρ* συμβουλ*\") PhraseQuery(default_text:\"ey επενδυτικη\")",
       "parsedquery_toString":"\"ernst εταιρ* συμβουλ*\" default_text:\"ey επενδυτικη\"",

      If i reverse the query to make it like this:

       

      "ey επενδυτικη"~10 || _query_:"{!complexphrase inOrder=false}\"ernst εταιρ* συμβουλ*\""
      

      The result is ok.

       

      "rawquerystring":"\"ey επενδυτικη\"~10 || _query_:\"{!complexphrase inOrder=false}\\\"ernst εταιρ* συμβουλ*\\\"\"",
       "querystring":"\"ey επενδυτικη\"~10 || _query_:\"{!complexphrase inOrder=false}\\\"ernst εταιρ* συμβουλ*\\\"\"",
       "parsedquery":"PhraseQuery(default_text:\"ey επενδυτικη\"~10) ComplexPhraseQuery(\"ernst εταιρ* συμβουλ*\")",
       "parsedquery_toString":"default_text:\"ey επενδυτικη\"~10 \"ernst εταιρ* συμβουλ*\"",

      The same happens if I transform it, like this:

      _query_:"{!complexphrase inOrder=false}\"ernst εταιρ* συμβουλ*\"" || _query_:"\"ey επενδυτικη\"~10"

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              gstrat88 John Stratoulis
            • Votes:
              1 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: