On Wed, Jun 10, 2009 at 11:16 AM, Shai Erera<ser...@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-unsubscr...@lucene.apache.org For additional commands, e-mail: java-dev-h...@lucene.apache.org