lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Vijay B <vijay.nip...@gmail.com>
Subject Re: re-mapping lucene index
Date Tue, 10 Feb 2015 19:09:58 GMT
searching and indexing apps run in diffrent jvms. we use lucene 4.7 and
using the default openmode.

For full indexing, we use java.io.File.delete() to recursively delete index
directory contents. will remapping cause any issues in this case if I dont
use options you suggested?

On Tue, Feb 10, 2015 at 1:56 PM, Michael McCandless <
lucene@mikemccandless.com> wrote:

> 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
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message