Return-Path: Delivered-To: apmail-lucene-java-user-archive@www.apache.org Received: (qmail 6517 invoked from network); 11 Jun 2007 18:19:41 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 11 Jun 2007 18:19:41 -0000 Received: (qmail 74773 invoked by uid 500); 11 Jun 2007 18:19:38 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 74524 invoked by uid 500); 11 Jun 2007 18:19:37 -0000 Mailing-List: contact java-user-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: java-user@lucene.apache.org Delivered-To: mailing list java-user@lucene.apache.org Received: (qmail 74513 invoked by uid 99); 11 Jun 2007 18:19:37 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 11 Jun 2007 11:19:37 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: local policy) Received: from [66.111.4.28] (HELO out4.smtp.messagingengine.com) (66.111.4.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 11 Jun 2007 11:19:33 -0700 Received: from compute2.internal (compute2.internal [10.202.2.42]) by out1.messagingengine.com (Postfix) with ESMTP id 46B49E90 for ; Mon, 11 Jun 2007 14:19:12 -0400 (EDT) Received: from web8.messagingengine.com ([10.202.2.217]) by compute2.internal (MEProxy); Mon, 11 Jun 2007 14:19:12 -0400 Received: by web8.messagingengine.com (Postfix, from userid 99) id 2954D9F28; Mon, 11 Jun 2007 14:19:12 -0400 (EDT) Message-Id: <1181585952.27549.1194583245@webmail.messagingengine.com> X-Sasl-Enc: 4Rz6L8WFSoDSbZd31kIfpKwaufRULwwhBAexTG+MeZTg 1181585952 From: "Michael McCandless" To: java-user@lucene.apache.org Content-Disposition: inline Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="ISO-8859-1" MIME-Version: 1.0 X-Mailer: MessagingEngine.com Webmail Interface References: <466AC4E8.8010803@rssowl.org> <359a92830706101031i2576ce17g940bd61eb941698e@mail.gmail.com> <466C3890.9060006@rssowl.org> <359a92830706101300jd54d938n522b14aef2dd660b@mail.gmail.com> <466CF79B.1090403@rssowl.org> <1181551841.23337.1194483819@webmail.messagingengine.com> Subject: Re: Retrieving TermVectors from a Field over the full index? In-Reply-To: Date: Mon, 11 Jun 2007 14:19:12 -0400 X-Virus-Checked: Checked by ClamAV on apache.org "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 > 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