lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michael McCandless" <luc...@mikemccandless.com>
Subject Re: Retrieving TermVectors from a Field over the full index?
Date Mon, 11 Jun 2007 18:19:12 GMT
"Chris Hostetter" <hossman_lucene@fucit.org> 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
> termDocs.seek(TermEnum) 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.

Mike

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


Mime
View raw message