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

http://blog.mikemccandless.com


On Tue, Feb 10, 2015 at 1:31 PM, Vijay B <vijay.nip...@gmail.com> 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: java-user-unsubscr...@lucene.apache.org
For additional commands, e-mail: java-user-h...@lucene.apache.org

Reply via email to