/www.thetaphi.de
> eMail: u...@thetaphi.de
>
>
> > -Original Message-
> > From: Reg [mailto:register9...@gmail.com]
> > Sent: Tuesday, October 22, 2013 8:27 AM
> > To: java-user@lucene.apache.org
> > Subject: use MMapDirectory with tmpfs?
> >
>
Hi there,
If I put Lucene segments on tmpfs and use MMapDirectory to access them,
would the kernel be so dumb to load the files from tmpfs to another copy of
file system cache before map it to the virtual address? Or it just maps
tmpfs to the virtual address directly? I tend to believe it's the
I noticed if I do the merging in the following way,
IndexWriter.mabyeMerge() is never triggered automatically by the merge
scheduler.
IndexWriter writer = ...;
IndexReader[] readers = ...;
writer.addIndexes(readers)
writer.close();
Is it a bug or by design?
Thanks.
--
Lei
ks.
>
> Mike McCandless
>
> http://blog.mikemccandless.com
>
>
> On Tue, May 7, 2013 at 7:18 PM, Reg wrote:
> > Hi Mike,
> >
> > Here's the unit test I put together. I assume you have JUnit.
> >
> >
> > On Tue, May 7, 2013 at 12:18 PM
Hi Mike,
Here's the unit test I put together. I assume you have JUnit.
On Tue, May 7, 2013 at 12:18 PM, Michael McCandless <
luc...@mikemccandless.com> wrote:
> On Tue, May 7, 2013 at 1:58 PM, Reg wrote:
> > TrackingIndexWriter.tryDeleteDocument(IndexReader, int) returns
nd this method returns true; else, it returns false"
>
> Maybe you need mgrWriter.tryDeleteDocument(DirectoryReader.open(mgrWriter,
> true), 0);
>
>
> --
> Ian.
>
>
> On Tue, May 7, 2013 at 2:05 AM, Reg wrote:
> > Hi all,
> >
> > It seems
Hi all,
It seems tryDeleteDocument(IndexReader, int) doesn't work with NRTManager
while deleteDocuments(Query) works.
Here are some sample code snippets:
TrackingIndexWriter mgrWriter = new NRTManager.TrackingIndexWriter(writer);
ReferenceManager mgr = new NRTManager(mgrWriter, new
SearcherFact