-->
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: How to delete lucene index?
PostPosted: Tue Aug 23, 2011 8:05 am 
Newbie

Joined: Tue Aug 23, 2011 7:46 am
Posts: 3
My application creates index manually. If index was build correctly and I generate index again, all index files still are on disk and program creates new index.

Can you give me advice how to remove old index files before creating new?


Top
 Profile  
 
 Post subject: Re: How to delete lucene index?
PostPosted: Tue Aug 23, 2011 12:46 pm 
Hibernate Team
Hibernate Team

Joined: Fri Oct 05, 2007 4:47 pm
Posts: 2536
Location: Third rock from the Sun
Hi,
you should be able to delete the Files, Hibernate Search won't prevent that, and when starting it will only create a new empty index if no index is found (if you already provided an index, it won't overwrite it).
Make sure you configure your ReaderProvider to use the not-shared strategy as explained here: http://docs.jboss.org/hibernate/stable/ ... r-strategy

Also set
hibernate.search.indexing_strategy = manual

(see manual for details)

_________________
Sanne
http://in.relation.to/


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.