[jira] [Reopened] (SOLR-3336) SolrEntityProcessor should substitute params at query time, not startup time

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[jira] [Reopened] (SOLR-3336) SolrEntityProcessor should substitute params at query time, not startup time

Clark Perkins (Jira)

     [ https://issues.apache.org/jira/browse/SOLR-3336?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Shalin Shekhar Mangar reopened SOLR-3336:
-----------------------------------------

      Assignee: Shalin Shekhar Mangar

The fix is not complete. Although the variable substitution was moved to the doQuery() method but because of the initDone boolean flag, the doQuery method is actually executed only once. Hence subsequent executions of child SolrEntityProcessor will either return records from the first execution or return no records at all.

http://www.mail-archive.com/solr-user@.../msg88002.html
http://stackoverflow.com/questions/15734308/solrentityprocessor-is-called-only-once-for-sub-entities?lq=1
               

> 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.6, 4.0-ALPHA
>            Reporter: Lance Norskog
>            Assignee: Shalin Shekhar Mangar
>             Fix For: 3.6.1, 4.0-ALPHA
>
>         Attachments: SolrEntityProcessor.java
>
>
> 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
For more information on JIRA, see: http://www.atlassian.com/software/jira

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]