RE: Problem in getting hits

2003-08-03 Thread M P
= new Document(); > >doc.add(Field.UndIndexed("path", filename)); > >doc.add(Field.Text("body", (Reader) new > > InputStreamReader(is))); > > > >writer.addDocument(doc); > >is.close(); > >writer.close(); > > } > >

RE: Problem in getting hits

2003-08-02 Thread M P
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

RE: Problem in getting hits

2003-08-02 Thread MMachado
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

RE: Problem in getting hits

2003-08-01 Thread M P
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

RE: Problem in getting hits

2003-08-01 Thread MMachado
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