You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "John Stratoulis (JIRA)" <ji...@apache.org> on 2018/04/19 12:51:00 UTC

[jira] [Created] (SOLR-12241) Error in proximity parsing when _query_ with complex phrase proceeds normal query containing proximity

John Stratoulis created SOLR-12241:
--------------------------------------

             Summary: Error in proximity parsing when _query_ with complex phrase proceeds normal query containing proximity
                 Key: SOLR-12241
                 URL: https://issues.apache.org/jira/browse/SOLR-12241
             Project: Solr
          Issue Type: Bug
      Security Level: Public (Default Security Level. Issues are Public)
          Components: query parsers
    Affects Versions: 7.0.1, 6.0
         Environment: Ubuntu 16.04
            Reporter: John Stratoulis


Lets say I am using a query like this:

 
{code:java}
_query_:"{!complexphrase inOrder=false}\"ernst εταιρ* συμβουλ*\"" || "ey επενδυτικη"~10
{code}
The result is not as expected.

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

 
{code:java}
"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 επενδυτικη\"",{code}
If i reverse the query to make it like this:

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

 
{code:java}
"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 εταιρ* συμβουλ*\"",{code}
The same happens if I transform it, like this:
{code:java}
_query_:"{!complexphrase inOrder=false}\"ernst εταιρ* συμβουλ*\"" || _query_:"\"ey επενδυτικη\"~10"{code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org