lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Reg <register9...@gmail.com>
Subject Re: TrackingIndexWriter.tryDeleteDocument(IndexReader, int) vs deleteDocuments(Query)
Date Wed, 08 May 2013 00:12:13 GMT
There you go.  By the way, love your blogs.



On Tue, May 7, 2013 at 4:59 PM, Michael McCandless <
lucene@mikemccandless.com> wrote:

> I'm afraid the mailing list stripped the attachment ... could you post
> it inline?  Or, CC me directly with the attachment?
>
> Thanks.
>
> Mike McCandless
>
> http://blog.mikemccandless.com
>
>
> On Tue, May 7, 2013 at 7:18 PM, Reg <register9527@gmail.com> 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, Michael McCandless
> > <lucene@mikemccandless.com> wrote:
> >>
> >> On Tue, May 7, 2013 at 1:58 PM, Reg <register9527@gmail.com> wrote:
> >> > TrackingIndexWriter.tryDeleteDocument(IndexReader, int) returns an
> >> > AtomicInteger indexingGen.  And in my case it returns 1 which means
> the
> >> > underlying IndexWriter.tryDeleteDocument(IndexReader, int) returns
> true.
> >>
> >> If tryDeleteDocument returned 1 then the delete should have taken ...
> >> can you write this up as a test case showing the issue?
> >>
> >> Are you sure docID 0 is the right document to delete?  Remember that
> >> the Collector can get multiple docID=0 (one per segment)...
> >>
> >> Mike McCandless
> >>
> >> http://blog.mikemccandless.com
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
> >> For additional commands, e-mail: java-user-help@lucene.apache.org
> >>
> >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
> > For additional commands, e-mail: java-user-help@lucene.apache.org
>
> ---------------------------------------------------------------------
> 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