[
https://issues.apache.org/jira/browse/SOLR-3336?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13249487#comment-13249487
]
Lance Norskog commented on SOLR-3336:
-------------------------------------
All variable substitution happens in SolrEntityProcessor.firstInit(), not
doQuery(). doQuery() fetches the stored query string and executes it.
This makes the SEP useful for the outermost entity, but not the inner entities.
> 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: [email protected]
For additional commands, e-mail: [email protected]