lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Otis Gospodnetic <otis_gospodne...@yahoo.com>
Subject Re: Accessing the "contents" field
Date Thu, 14 Mar 2002 05:21:59 GMT
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 <rnavendra@ccnetwork.com.au> 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:  
> <mailto:lucene-user-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail:
> <mailto:lucene-user-help@jakarta.apache.org>
> 


__________________________________________________
Do You Yahoo!?
Yahoo! Sports - live college hoops coverage
http://sports.yahoo.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