Return-Path: Delivered-To: apmail-lucene-java-user-archive@www.apache.org Received: (qmail 30183 invoked from network); 11 Feb 2008 15:23:07 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 11 Feb 2008 15:23:07 -0000 Received: (qmail 92961 invoked by uid 500); 11 Feb 2008 15:22:54 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 92937 invoked by uid 500); 11 Feb 2008 15:22:54 -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 92926 invoked by uid 99); 11 Feb 2008 15:22:54 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 11 Feb 2008 07:22:54 -0800 X-ASF-Spam-Status: No, hits=1.2 required=10.0 tests=SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: 194.109.24.31 is neither permitted nor denied by domain of karl.wettin@gmail.com) Received: from [194.109.24.31] (HELO smtp-vbr11.xs4all.nl) (194.109.24.31) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 11 Feb 2008 15:22:21 +0000 Received: from kodapan.lan (memnon.xs4all.nl [82.93.70.124]) by smtp-vbr11.xs4all.nl (8.13.8/8.13.8) with ESMTP id m1BFMR85009137 for ; Mon, 11 Feb 2008 16:22:27 +0100 (CET) (envelope-from karl.wettin@gmail.com) Message-Id: <65904997-3559-4502-BBB7-8CE512A1E848@gmail.com> From: Karl Wettin To: java-user@lucene.apache.org In-Reply-To: <68959F25CDEBCB4F917D5A253291D73E07CDA66045@BLRKECMBX06.ad.infosys.com> Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v915) Subject: Re: Getting Payload from Hits Date: Mon, 11 Feb 2008 16:22:27 +0100 References: <68959F25CDEBCB4F917D5A253291D73E07CDA66045@BLRKECMBX06.ad.infosys.com> X-Mailer: Apple Mail (2.915) X-Virus-Scanned: by XS4ALL Virus Scanner X-Virus-Checked: Checked by ClamAV on apache.org 11 feb 2008 kl. 14.46 skrev Allahbaksh Mohammedali Asadullah: > d.add(new Field("f1", "This field has no payloads", Field.Store.NO, > Field.Index.TOKENIZED)); > d.add(new Field("f2", "This field has payloads in all docs", > Field.Store.YES, Field.Index.TOKENIZED)); > Document doc = hits.doc(i); > > Here I want to get the value of payload for the field.. Are you confusing payloads with stored field values? You retreive the /stored field value/ like this: doc.get("f2"); You "can not" retreive /payloads/ from Hits. karl --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org For additional commands, e-mail: java-user-help@lucene.apache.org