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

Martijn van Groningen commented on SOLR-3336:
---------------------------------------------

If I remember correctly variable substitution can happen at query time for most 
of the DIH configuration. I think the following configuration would work:
{code:xml}
<entity name="ent1" ...>
   <field SomeField/>
   <entity SolrEntityProcessor query="${ent1.SomeField}"/>
</entity>
{code}
                
> SolrEntityProcessor should substitute params at query time, not startup time
> ----------------------------------------------------------------------------
>
>                 Key: SOLR-3336
>                 URL: https://issues.apache.org/jira/browse/SOLR-3336
>             Project: Solr
>          Issue Type: New Feature
>          Components: contrib - DataImportHandler
>    Affects Versions: 3.5, 4.0
>            Reporter: Lance Norskog
>
> The SolrEntityProcessor performs variable substitution at startup, not at 
> query time. This means that this technique cannot work:
> {code}
> <entity get a document>
>    <field SomeField/>
>    <entity SolrEntityProcessor query="${SomeField}"/>
> </entity>
> {code}
> The SEP should substitute the new value of SomeField into each query string.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org

Reply via email to