lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael McCandless <>
Subject Re: re-mapping lucene index
Date Tue, 10 Feb 2015 18:56:55 GMT
Just open a new IndexWriter with OpenMode.CREATE.  It will replace the index.

Or if you already have an IW open, use deleteAll.

Mike McCandless

On Tue, Feb 10, 2015 at 1:31 PM, Vijay B <> wrote:
> We use MMapdirectory impl. in our search application. Occasionally we need
> to do a full indexing by dropping entire directory contents. How does
> re-mapping work with MMapDirectory as the directory contents are going to
> replace with new ones? is this going to be seamless or an application
> restart required?
> Additonal Info: We use SearcherManger to acquire searchers and we do
> periodically refresh serachers.

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

View raw message