[ 
https://issues.apache.org/jira/browse/SOLR-3729?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Jack Krupansky updated SOLR-3729:
---------------------------------

    Description: 
I just happen to notice that (\*:\*) is not parsed properly by the edismax 
(ExtendedDismaxQParser) query parser in 4.0-beta. It appears to require spaces 
before and after the \*:\*, otherwise it treats the colon as part of a wildcard 
term (see the escaping below). I haven’t tried other releases yet.

My original query:

http://localhost:8983/solr/select/?debugQuery=true&q=(*:*)&defType=edismax

Produces this:

{code}
<str name="rawquerystring">(*:*)</str>
<str name="parsedquery">(+DisjunctionMaxQuery((text:*\:*)))/no_coord</str>
<str name="parsedquery_toString">+(text:*\:*)</str>
<str name="QParser">ExtendedDismaxQParser</str>
{code}

Some variations I tried:

{code}
<str name="rawquerystring">( *:*)</str>
<str name="parsedquery">(+DisjunctionMaxQuery((text:*\:*)))/no_coord</str>
<str name="parsedquery_toString">+(text:*\:*)</str>
 
<str name="rawquerystring">(*:* )</str>
<str name="parsedquery">(+DisjunctionMaxQuery((text:*\:*)))/no_coord</str>
<str name="parsedquery_toString">+(text:*\:*)</str>
 
<str name="rawquerystring">( *:* )</str>
<str name="parsedquery">(+MatchAllDocsQuery(*:*))/no_coord</str>
<str name="parsedquery_toString">+*:*</str>
 
<str name="rawquerystring">(*:* -fox)</str>
<str name="parsedquery">
(+(DisjunctionMaxQuery((text:*\:*)) -DisjunctionMaxQuery((text:fox))))/no_coord
</str>
<str name="parsedquery_toString">+((text:*\:*) -(text:fox))</str>
 
<str name="rawquerystring">( *:* -fox)</str>
<str name="parsedquery">
(+(MatchAllDocsQuery(*:*) -DisjunctionMaxQuery((text:fox))))/no_coord
</str>
<str name="parsedquery_toString">+(*:* -(text:fox))</str>
{code}


  was:
I just happen to notice that (\*:\*) is not parsed properly by the edismax 
(ExtendedDismaxQParser) query parser in 4.0-beta. It appears to require spaces 
before and after the \*:\*, otherwise it treats the colon as part of a wildcard 
term (see the escaping below). I haven’t tried other releases yet.

My original query:

http://localhost:8983/solr/select/?debugQuery=true&q=(*:*)&defType=edismax

{code}
<str name="rawquerystring">(*:*)</str>
<str name="parsedquery">(+DisjunctionMaxQuery((text:*\:*)))/no_coord</str>
<str name="parsedquery_toString">+(text:*\:*)</str>
<str name="QParser">ExtendedDismaxQParser</str>
{code}

Some variations I tried:
  
<str name="rawquerystring">( \*:\*)</str>
<str name="parsedquery">(+DisjunctionMaxQuery((text:\*\\:\*)))/no_coord</str>
<str name="parsedquery_toString">+(text:\*\\:\*)</str>
 
<str name="rawquerystring">(\*:\* )</str>
<str name="parsedquery">(+DisjunctionMaxQuery((text:\*\\:\*)))/no_coord</str>
<str name="parsedquery_toString">+(text:\*\\:\*)</str>
 
<str name="rawquerystring">( \*:\* )</str>
<str name="parsedquery">(+MatchAllDocsQuery(\*:\*))/no_coord</str>
<str name="parsedquery_toString">+\*:\*</str>
 
<str name="rawquerystring">(\*:\* -fox)</str>
<str name="parsedquery">
(+(DisjunctionMaxQuery((text:\*\\:\*)) 
-DisjunctionMaxQuery((text:fox))))/no_coord
</str>
<str name="parsedquery_toString">+((text:\*\\:\*) -(text:fox))</str>
 
<str name="rawquerystring">( \*:\* -fox)</str>
<str name="parsedquery">
(+(MatchAllDocsQuery(\*:\*) -DisjunctionMaxQuery((text:fox))))/no_coord
</str>
<str name="parsedquery_toString">+(\*:\* -(text:fox))</str>


    
> ExtendedDismaxQParser (edismax) doesn't parse (*:*) properly
> ------------------------------------------------------------
>
>                 Key: SOLR-3729
>                 URL: https://issues.apache.org/jira/browse/SOLR-3729
>             Project: Solr
>          Issue Type: Bug
>          Components: query parsers
>    Affects Versions: 4.0-BETA
>            Reporter: Jack Krupansky
>
> I just happen to notice that (\*:\*) is not parsed properly by the edismax 
> (ExtendedDismaxQParser) query parser in 4.0-beta. It appears to require 
> spaces before and after the \*:\*, otherwise it treats the colon as part of a 
> wildcard term (see the escaping below). I haven’t tried other releases yet.
> My original query:
> http://localhost:8983/solr/select/?debugQuery=true&q=(*:*)&defType=edismax
> Produces this:
> {code}
> <str name="rawquerystring">(*:*)</str>
> <str name="parsedquery">(+DisjunctionMaxQuery((text:*\:*)))/no_coord</str>
> <str name="parsedquery_toString">+(text:*\:*)</str>
> <str name="QParser">ExtendedDismaxQParser</str>
> {code}
> Some variations I tried:
> {code}
> <str name="rawquerystring">( *:*)</str>
> <str name="parsedquery">(+DisjunctionMaxQuery((text:*\:*)))/no_coord</str>
> <str name="parsedquery_toString">+(text:*\:*)</str>
>  
> <str name="rawquerystring">(*:* )</str>
> <str name="parsedquery">(+DisjunctionMaxQuery((text:*\:*)))/no_coord</str>
> <str name="parsedquery_toString">+(text:*\:*)</str>
>  
> <str name="rawquerystring">( *:* )</str>
> <str name="parsedquery">(+MatchAllDocsQuery(*:*))/no_coord</str>
> <str name="parsedquery_toString">+*:*</str>
>  
> <str name="rawquerystring">(*:* -fox)</str>
> <str name="parsedquery">
> (+(DisjunctionMaxQuery((text:*\:*)) 
> -DisjunctionMaxQuery((text:fox))))/no_coord
> </str>
> <str name="parsedquery_toString">+((text:*\:*) -(text:fox))</str>
>  
> <str name="rawquerystring">( *:* -fox)</str>
> <str name="parsedquery">
> (+(MatchAllDocsQuery(*:*) -DisjunctionMaxQuery((text:fox))))/no_coord
> </str>
> <str name="parsedquery_toString">+(*:* -(text:fox))</str>
> {code}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira



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

Reply via email to