[
https://issues.apache.org/jira/browse/SOLR-4558?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18132149#comment-18132149
]
Nick Shanin commented on SOLR-4558:
-----------------------------------
>From code reading against apache/main b73f03976fa, local params are parsed in
>QParser.getParser before the parser plugin receives the string
>(solr/core/src/java/org/apache/solr/search/QParser.java:424-426, 442, 456), so
>the plugin never gets "{!". That is the designed order, and parameter
>dereferencing is the supported workaround, so this is a feature request, not a
>malfunction. [~rjernst], if you need a different escape, reply and I will
>reopen it. Otherwise I plan to close it as not a bug.
🤖 AI-generated 🤖
> 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
> Priority: Major
> 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 was sent by Atlassian Jira
(v10.3.26#10030026)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]