lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Grant Ingersoll <>
Subject Re: Which is faster/better
Date Tue, 25 Nov 2008 19:17:12 GMT

On Nov 25, 2008, at 12:59 PM, Khawaja Shams wrote:

> On Tue, Nov 25, 2008 at 8:42 AM, Grant Ingersoll  
> <>wrote:
>> On Nov 25, 2008, at 10:46 AM, Michael McCandless wrote:
>> If you already have the docId, would you need to/want to do
>>>> delete-by-Query or even delete-by-Term?  Isn't delete-by-id a lot  
>>>> lighter
>>>> weight since it only marks the the doc as deleted, where as d-b-Q  
>>>> can
>>>> potentially force a flush, etc?
>>> I guess the question is how you got that docID in the first  
>>> place?  If
>>> you got it by running a query, and deleting all docIDs that are
>>> returned, then you could dBQ instead?
>> User does a search.  Gets back a set of docs.  Picks docs to delete,
>> deletes them.
> Grant, can we assume that the document id will remain consistent  
> from the
> time user obtained the result and when they click delete? I was  
> under the
> impression that the document ids can change on optimize, etc.

That's up to your business logic to determine.  The id is consistent  
for the life of the IdxReader.  Whether you change your reader or not,  
is up to you.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message