lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "William W" <william_...@hotmail.com>
Subject Re: Accessing the "contents" field
Date Thu, 14 Mar 2002 14:09:30 GMT

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" <rnavendra@ccnetwork.com.au>
>Reply-To: "Lucene Users List" <lucene-user@jakarta.apache.org>
>To: <lucene-user@jakarta.apache.org>
>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:lucene-user-unsubscribe@jakarta.apache.org>
>For additional commands, e-mail: 
><mailto:lucene-user-help@jakarta.apache.org>
>




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


--
To unsubscribe, e-mail:   <mailto:lucene-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:lucene-user-help@jakarta.apache.org>


Mime
View raw message