[
https://issues.apache.org/jira/browse/SOLR-4558?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13604259#comment-13604259
]
Yonik Seeley commented on SOLR-4558:
------------------------------------
I'm not sure that attempting to disable on a query-wide basis is a good idea.
When explicitly specified, the raw query parser handles any term value fine:
{quote}
&fq={!raw f=myfield}therawvalue
&fq={!raw f=myfield v=$param}
¶m=myrawvalue
{quote}
I assume the issue arises in conjunction with your other patch SOLR-4559, which
I'm also not sure is a great idea (changing the default query parser type for
filters).
> raw query parser cannot parse value "{!"
> ----------------------------------------
>
> Key: SOLR-4558
> URL: https://issues.apache.org/jira/browse/SOLR-4558
> Project: Solr
> Issue Type: Bug
> Components: query parsers
> Affects Versions: 4.2
> Reporter: Ryan Ernst
> Attachments: SOLR-4558.patch
>
>
> In QParser.getParser, local params are handled before passing the query to
> the parser plugin. This means a query parser plugin will never see "{!" as a
> value to parse (even if the parsers syntax might allow that). You could use
> parameter dereferencing, but that is awkward, and it is useful in general to
> be able to disable local params syntax.
> One possible solution is to add an "enableLocalParams" parameter which, if
> set to false, will bypass looking for local params and go directly to
> constructing the parser, passing through the qstr unaltered.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]