lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael McCandless <luc...@mikemccandless.com>
Subject Re: Delete contents from index
Date Mon, 20 Nov 2006 11:56:24 GMT
spinergywmy wrote:

>    How can I delete the contents from Index file? Is there any example that
> I can refer to?

Just create an IndexWriter with the 3rd boolean argument (create) set to 
true.  This will remove any existing files.

Alternatively, you can use FSDirectory.getDirectory(<path-to-index>, true).

Mike

---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org


Mime
View raw message