Return-Path: Delivered-To: apmail-jakarta-lucene-user-archive@apache.org Received: (qmail 94937 invoked from network); 14 Mar 2002 05:21:54 -0000 Received: from unknown (HELO nagoya.betaversion.org) (192.18.49.131) by daedalus.apache.org with SMTP; 14 Mar 2002 05:21:54 -0000 Received: (qmail 5386 invoked by uid 97); 14 Mar 2002 05:22:03 -0000 Delivered-To: qmlist-jakarta-archive-lucene-user@jakarta.apache.org Received: (qmail 5338 invoked by uid 97); 14 Mar 2002 05:22:02 -0000 Mailing-List: contact lucene-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Lucene Users List" Reply-To: "Lucene Users List" Delivered-To: mailing list lucene-user@jakarta.apache.org Received: (qmail 5326 invoked from network); 14 Mar 2002 05:22:01 -0000 Message-ID: <20020314052159.75611.qmail@web12701.mail.yahoo.com> Date: Wed, 13 Mar 2002 21:21:59 -0800 (PST) From: Otis Gospodnetic Subject: Re: Accessing the "contents" field To: Lucene Users List In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Make sure that you added it to the index as a stored field, and not just indexed. Look at the Javadoc for Field class to see different field types. Otis --- ROSHAN NAVENDRA wrote: > Hi, > > I would like to access the contents field of a document, fo rexample > > doc(i).get("contents") > > this should return a String (am i right?) but when I print it out I > find that it is a Null. How do I go about accessing the contents of > the file???? > > Rosh. > > > -- > To unsubscribe, e-mail: > > For additional commands, e-mail: > > __________________________________________________ Do You Yahoo!? Yahoo! Sports - live college hoops coverage http://sports.yahoo.com/ -- To unsubscribe, e-mail: For additional commands, e-mail: