lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael McCandless <luc...@mikemccandless.com>
Subject Re: Some thoughts around the use of reader.isDeleted and hasDeletions
Date Wed, 10 Jun 2009 15:30:31 GMT
On Wed, Jun 10, 2009 at 11:16 AM, Shai Erera<serera@gmail.com> wrote:
>> it makes sense because isDeleted() is essentially the *only* thing
>> being done in the loop, and hence we can eliminate the loop entirely
>
> You mean that in case there is a matching segment, we can call
> matchingVectorsReader.rawDocs(rawDocLengths, rawDocLengths2, 0, maxDoc)?

Right, except you'll have to do it in chunks of rawDocLengths.length,
until you get to maxDoc.

> But in case it does not have a matching segment, we'd still need to iterate
> on the docs, and copy the term vectors one by one, right?

Yes.

Mike

---------------------------------------------------------------------
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