You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-dev@lucene.apache.org by Kay Kay <ka...@gmail.com> on 2008/12/24 18:47:01 UTC
Regarding adding closeHooks to a full-import in the DataImportHandler
For one of our apps - we have a workflow engine , of which - the
full-import of data from a database to a Lucene index , is part of the
same.
We need to have independent closeHook plugins attached to the
full-import process as a way of fitting in our workflow.
I have created a new jira , jira-938 - to track the same -
https://issues.apache.org/jira/browse/SOLR-938?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
.
A new interface - DataImportCloseHook is available that plugins can
register themselves with to implement the same. Currently - the close
hooks are called only in the case of full-imports and not delta imports,
as the latter might be expensive.
I have submitted the patch that we use internally. Feel free to let me
know your thoughts regarding the same.
Re: Regarding adding closeHooks to a full-import in the DataImportHandler
Posted by Noble Paul നോബിള് नोब्ळ् <no...@gmail.com>.
The last method that gets called now is the destroy method of the
EntityProcessor of the rootmost entity. If you wish you can extend the
SqlEntityProcessor and override the destroy () method and make it the
processor for your root most entity
On Wed, Dec 24, 2008 at 11:17 PM, Kay Kay <ka...@gmail.com> wrote:
> For one of our apps - we have a workflow engine , of which - the full-import
> of data from a database to a Lucene index , is part of the same.
>
> We need to have independent closeHook plugins attached to the full-import
> process as a way of fitting in our workflow.
>
>
> I have created a new jira , jira-938 - to track the same -
> https://issues.apache.org/jira/browse/SOLR-938?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
> .
>
> A new interface - DataImportCloseHook is available that plugins can register
> themselves with to implement the same. Currently - the close hooks are
> called only in the case of full-imports and not delta imports, as the latter
> might be expensive.
>
> I have submitted the patch that we use internally. Feel free to let me know
> your thoughts regarding the same.
>
--
--Noble Paul