You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Jan Høydahl (JIRA)" <ji...@apache.org> on 2015/08/01 01:21:05 UTC

[jira] [Commented] (SOLR-7846) QTs with $variable does not work with query parameter substitution

    [ 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: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org