Hi Roshan,
You only will have the contents in a field if you add it.
Ex.:
    doc.add(Field.Text("contents", "My text"));

"contents" is not a default name.
William.

>From: "ROSHAN NAVENDRA" <[EMAIL PROTECTED]>
>Reply-To: "Lucene Users List" <[EMAIL PROTECTED]>
>To: <[EMAIL PROTECTED]>
>Subject: Accessing the "contents" field
>Date: Thu, 14 Mar 2002 14:36:53 +1000
>
>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:   
><mailto:[EMAIL PROTECTED]>
>For additional commands, e-mail: 
><mailto:[EMAIL PROTECTED]>
>




_________________________________________________________________
Join the world�s largest e-mail service with MSN Hotmail. 
http://www.hotmail.com


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to