Thanks Chris
I just realize the "contents" in the index is not the "contents" in the
original document.
Miki
Original Message Follows
From: Chris Hostetter <[EMAIL PROTECTED]>
Reply-To: java-user@lucene.apache.org
To: java-user@lucene.apache.org
Subject: Re
enized and indexed, but not stored.
// Note that FileReader expects the file to be in the system's default
encoding.
// If that's not the case searching for special characters will fail.
doc.add(new Field("contents", new FileReader(f)));
..since it is not stored,
Dear all
I got a java.lang.NullPointerException at
java.io.StringReader.(StringReader.java:33) error when processing the
following code:
for (int i = 0; i < theHits.length(); i++)
{
Document doc = theHits.doc(i);
String contents = doc.get("contents") ;
TokenStrea