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

Bill Bell commented on SOLR-7846:
---------------------------------

There is a work around, 

<str name="pspec">PS127</str>
<str name="hqval1">hosp_quality_spec_boost:${pspec:${pspec}}</str>

This works.

> 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]

Reply via email to