lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michael McCandless" <>
Subject Re: Retrieving TermVectors from a Field over the full index?
Date Mon, 11 Jun 2007 18:19:12 GMT
"Chris Hostetter" <> wrote:
> : It seems like what's missing is the efficient ability for
> : TermDocs/TermInfosReader to seek to the first term of a given field.
> : They already can seek to a given specific term; with some small
> isn't TermEnum.skipTo(new Term("field","") followed by
> going to take care of this for you?
> The first call should efficinetly skip to the first term in the field
> "field" (if there is one) and the second call should efficiently seek the
> TermDoc to the first doc containing that term.
> (This is how TermScorer and RangeFilter work work as i recall)

Ahhh, right.  You don't have to give skipTo a real (existing) term.
So this approach would work fine.


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

View raw message