[
https://issues.apache.org/jira/browse/SOLR-7846?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14649989#comment-14649989
]
Jan Høydahl commented on SOLR-7846:
-----------------------------------
Perhaps what we need is a generic way to escape the ${} syntax in XML files. A
simple \${} could work, but is perhaps dangerous because many places Windows
file paths may contain sysprop expansion, e.g. C:\$\{dir\}\foo.
> QTs with $variable does not work with query parameter substitution
> ------------------------------------------------------------------
>
> Key: SOLR-7846
> URL: https://issues.apache.org/jira/browse/SOLR-7846
> Project: Solr
> Issue Type: Bug
> Reporter: Bill Bell
>
> http://yonik.com/solr-query-parameter-substitution/
> This is not working as part of QTs in solrconfig.xml due to XML System
> Property Substitution getting confused in SOLR 5.2.1.
> Cannot load the core, since ${value} is being used for XML parameters for
> system property substitution.
> https://wiki.apache.org/solr/SolrConfigXml#System_property_substitution
> Can we support both?
> <str name="pspec">PS127</str>
> <str name="hqval1">hosp_quality_spec_boost:${pspec}</str>
> This does not work since it thinks it is a System Property.
> We can check System Property and if not defined assume it is in Query, or
> have a new parameter?
> {noformat}
> ${variable} - for System Properties
> ${{variable}} - for Query Parameters?
> {noformat}
> Thoughts?
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]