-->
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.  [ 1 post ] 
Author Message
 Post subject: How to intialize a lucene index
PostPosted: Mon Jan 16, 2006 7:45 am 
Beginner
Beginner

Joined: Mon Feb 07, 2005 10:40 pm
Posts: 22
Hi I just integrated the new lucene support through annotations and I would like to know how could I add to the index all those object that are already in the database and thus have never been updated or saved since I integrated the luceneIndex.
I think that there should be some sort of property such as recreateIndex=true , so that everytime the cfg gets regenerated the index gets cleaned and regenerated as well.

I have tried extending the actual LuceneEventListener to reuse some of it add and remove methods but these are currently declared as private.

I would like to know what is the best practice or common approach to regenerate the whole index at startup.

I was looking at the code at http://cvs.sourceforge.net/viewcvs.py/h ... iew=markup and couldn't find a clean way to dump my database to the index for the first time without having to load all objects, loop them and run some fake updates to force the LuceneEventListener to fire.

Any help is appreciated.

best regards.

Raul.


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

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.