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 <[email protected]> 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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to