lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Yonik Seeley" <yo...@apache.org>
Subject Re: Deprecating IndexModifier
Date Wed, 08 Aug 2007 20:29:33 GMT
On 8/8/07, Ning Li <ning.li.li@gmail.com> wrote:
> On 8/8/07, Yonik Seeley <yonik@apache.org> wrote:
> > Let's take a simple case of deleting documents in a range, like
> > date:[2006 TO 2008]
> > One would currently need to close the writer and open a new reader to
> > ensure that they can "see" all the documents.  Then execute a
> > RangeQuery, collect the ids, and do deletes.
>
> This reminds me: It'd be nice if we could support delete-by-query someday. :)
>
> I was thinking people use deleteDocument(int docid) when they are sure
> the docid hasn't changed since obtained. That's why I considered it an
> expert method...

Sure, but when do you know that the ids haven't change?  A: When you
haven't added anything with the writer.  So you get to keep the writer
open, but you can't really *use* it... that doesn't seem incredibly
useful ;-)

-Yonik

---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-dev-help@lucene.apache.org


Mime
View raw message