Return-Path: Delivered-To: apmail-lucene-java-user-archive@www.apache.org Received: (qmail 55257 invoked from network); 20 Jul 2007 08:53:43 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 20 Jul 2007 08:53:43 -0000 Received: (qmail 19542 invoked by uid 500); 20 Jul 2007 08:53:04 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 19497 invoked by uid 500); 20 Jul 2007 08:53:04 -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 19484 invoked by uid 99); 20 Jul 2007 08:53:04 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 20 Jul 2007 01:53:04 -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 [80.67.64.10] (HELO smtp2.akamai.com) (80.67.64.10) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 20 Jul 2007 01:53:00 -0700 Received: from smtp1.akamai.com (vwall.kendall.corp.akamai.com [172.17.4.35]) by smtp2.akamai.com (8.13.8/8.12.10) with ESMTP id l6K8rPLr005507 for ; Fri, 20 Jul 2007 04:53:25 -0400 (EDT) Received: from USMA1EX-GATE1.kendall.corp.akamai.com (usma1ex-gate1.kendall.corp.akamai.com [172.17.0.215]) by smtp1.akamai.com (8.13.8/8.12.10) with ESMTP id l6K8phPP023514 for ; Fri, 20 Jul 2007 04:51:43 -0400 (EDT) Received: from INVS1.bangalore.corp.akamai.com ([172.21.20.14]) by USMA1EX-GATE1.kendall.corp.akamai.com with Microsoft SMTPSVC(6.0.3790.1830); Fri, 20 Jul 2007 04:47:39 -0400 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Subject: RE: TermFreqVector X-MimeOLE: Produced By Microsoft Exchange V6.5 Date: Fri, 20 Jul 2007 14:22:34 +0530 Message-ID: <4FA8C6AEE609B644B38DE471A3657A62012FFCCD@INVS1.bangalore.corp.akamai.com> In-Reply-To: <469816.28987.qm@web45401.mail.sp1.yahoo.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: TermFreqVector Thread-Index: AcfKR6A6W9IGM3KDTpmLVsl0PTveVAAY35Yw References: <469816.28987.qm@web45401.mail.sp1.yahoo.com> From: "Chhabra, Kapil" To: X-OriginalArrivalTime: 20 Jul 2007 08:47:39.0515 (UTC) FILETIME=[A0D89CB0:01C7CAAA] X-Virus-Checked: Checked by ClamAV on apache.org http://lucene.apache.org/java/2_2_0/api/org/apache/lucene/search/Hits.ht ml#id(int) public final int id(int n) throws IOException Returns the id for the nth document in this set. Note that ids may change when the index changes, so you cannot rely on the id to be stable. kapilChhabra -----Original Message----- From: Kevin Chen [mailto:chen_k80@yahoo.com]=20 Sent: Friday, July 20, 2007 2:28 AM To: java-user@lucene.apache.org Subject: TermFreqVector I need to use getTermFreqVector on a subset of docs that belong to the hits for a query. I understand I need to pass the docNumber as an argument in this case. How do I access that. For ex . doc =3D hits.doc(0); TermFreqVector vector =3D reader.getTermFreqVector(docId, "field"); How do I get docId?=20 =20 --------------------------------- Looking for a deal? Find great prices on flights and hotels with Yahoo! FareChase. --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org For additional commands, e-mail: java-user-help@lucene.apache.org