= new Document();
> >doc.add(Field.UndIndexed("path", filename));
> >doc.add(Field.Text("body", (Reader) new
> > InputStreamReader(is)));
> >
> >writer.addDocument(doc);
> >is.close();
> >writer.close();
> > }
> >
ader) new
> InputStreamReader(is)));
>
>writer.addDocument(doc);
>is.close();
>writer.close();
> }
>
> Good Luck
> Michel
>
> -Original Message-
> From: M P [mailto:[EMAIL PROTECTED]
> Sent: Saturday, August 02, 2003 7:54 AM
> To: Lucene User
day, August 02, 2003 7:54 AM
To: Lucene Users List
Subject: RE: Problem in getting hits
Hi Michel,
I re-indexed the document as you mentioned:
doc.add(Field.text("body", new
java.io.StringReader();
But, I'm still getting zero hits.
Thanks,
MP.
--- [EMAIL PROTECTED] w
Hi Michel,
I re-indexed the document as you mentioned:
doc.add(Field.text("body", new
java.io.StringReader();
But, I'm still getting zero hits.
Thanks,
MP.
--- [EMAIL PROTECTED] wrote:
>
>
> Hi M P,
>
> Try this:
>
> InputStream is = new FileInputStream(filename);
> where filename is the f
Hi M P,
Try this:
InputStream is = new FileInputStream(filename); where filename is the file
to index.
---
---
doc.add(Field.Text("body", (Reader) new InputStreamReader(is)));
Michel
-Original Message-
From: M P [mailto:[EMAIL PROTECTED]
Sent: Saturday, August 02, 2003 5:25 AM
T