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: 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

http://blog.mikemccandless.com


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


Mime
View raw message