[ 
https://issues.apache.org/jira/browse/SOLR-14557?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17171784#comment-17171784
 ] 

David Smiley commented on SOLR-14557:
-------------------------------------

Cool. The only example of this in the ref-guide I'm aware of is 
{{the-standard-query-parser.adoc}} with this query: {{inStock:true OR {!dismax 
qf='name manu' v='ipod'}}}
Do you see anything else?  So it's unknown to users what Solr _should _ do when 
there is no 'v'. Maybe it should be an error starting in 9.0 so that users 
don't get tripped up by this? Similarly, I wish {{q=\{!myqp 
v=userQuery}ignored}} yielded an error (because of the ignored part) but does 
not and understanding why this query is flawed has totally perplexed some 
users/employers/clients I've worked with.

BTW thanks for investigating, and I agree with "won't-fix".

> Unable to parse local params followed by parenthesis like {!lucene}(gigabyte)
> -----------------------------------------------------------------------------
>
>                 Key: SOLR-14557
>                 URL: https://issues.apache.org/jira/browse/SOLR-14557
>             Project: Solr
>          Issue Type: Bug
>          Components: query parsers
>            Reporter: Mikhail Khludnev
>            Assignee: Mikhail Khludnev
>            Priority: Major
>              Labels: painful
>         Attachments: SOLR-14557.patch, SOLR-14557.patch, SOLR-14557.patch
>
>
> h2. Solr 4.5
> {{/select?defType=edismax&q=\{!lucene}(foo)&debugQuery=true}} 
>  
>  goes like
>  {code}
>  <str name="rawquerystring">\{!lucene}(foo)</str>
>  <str name="parsedquery_toString">content:foo</str>
>  <str name="QParser">LuceneQParser</str>
> {code}
> fine
> h2. 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 
> {code}
> "querystring":"\{!lucene}(foo)",
>  "parsedquery":"+DisjunctionMaxQuery(((Project.Address:lucene 
> Project.Address:foo) | (Project.OwnerType:lucene Project.OwnerType:foo) 
>  "QParser":"ExtendedDismaxQParser",
> {code}
> blah... 
> but removing braces in 8.2 works perfectly fine 
> {code}
> "querystring":"\{!lucene}foo",
>  "parsedquery":"+content:foo",
>  "parsedquery_toString":"+content:foo",
>  "QParser":"ExtendedDismaxQParser",
>  {code}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to