-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 
Author Message
 Post subject: Extracting Lucene Document from the FullTextEveListener
PostPosted: Thu Sep 16, 2010 3:38 am 
Pro
Pro

Joined: Wed Nov 05, 2003 7:22 pm
Posts: 211
Hi,

I'm trying to use Hibernate Search for indexing and another tool for searching that uses a RAM Directory and therefore needs to know about changes to the index.

Is there an easy way to extract a added/changed/deleted document when Search detects and processes the change? I know there is the FullTestEventListener. However, this is followed by all the document processing magic, and I would like to have the result Document of this in order to pass it along to the other tool.

Any way to do this?

Kind regards,

Marc


Top
 Profile  
 
 Post subject: Re: Extracting Lucene Document from the FullTextEveListener
PostPosted: Fri Sep 17, 2010 10:18 am 
Hibernate Team
Hibernate Team

Joined: Thu Apr 05, 2007 5:52 am
Posts: 1689
Location: Sweden
Hi,

I am wondering whether the custom worker could be a solution. You can implement your own BackendQueueProcessorFactory. You can configure your custom worker via the property hibernate.search.worker.backend. You could extend from LuceneBackendQueueProcessorFactory and override getProcessor(List<LuceneWork> queue).

Well, just an idea. Let me know how it goes.

--Hardy


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.