lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael McCandless <>
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).


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message