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

Shalin Shekhar Mangar updated SOLR-5190:
----------------------------------------

    Attachment: SOLR-5190.patch

Test + fix attached.

I removed the initDone boolean flag. Added a test in 
TestSolrEntityProcessorEndToEnd which invokes nested SolrEntityProcessor more 
than once.
                
> SolrEntityProcessor substitutes variables only once in child entities
> ---------------------------------------------------------------------
>
>                 Key: SOLR-5190
>                 URL: https://issues.apache.org/jira/browse/SOLR-5190
>             Project: Solr
>          Issue Type: Bug
>          Components: contrib - DataImportHandler
>    Affects Versions: 4.4
>            Reporter: Shalin Shekhar Mangar
>            Assignee: Shalin Shekhar Mangar
>            Priority: Minor
>             Fix For: 4.5, 5.0
>
>         Attachments: SOLR-5190.patch
>
>
> As noted by users on the mailing list and elsewhere, SolrEntityProcessor 
> cannot be used in a child entity because it substitutes variables only once.
> http://www.mail-archive.com/[email protected]/msg88002.html
> http://stackoverflow.com/questions/15734308/solrentityprocessor-is-called-only-once-for-sub-entities?lq=1
> SOLR-3336 attempted to fix the problem by moving variable substitution to the 
> doQuery method but that fix is not complete because the doQuery method is 
> called only once.

--
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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to