one way is to create a reader from a URL to your file: (Assuming the file is hosted somewhere reachable by an URL)
Reader r=new InputStreamReader(url.getInputStream()); Document doc=new Document(); doc.addField(Field.Keyword("url",url.toString())); doc.addField(Field.Text("contents",r)); iw.addDocument(doc); -John On Thu, 16 Dec 2004 16:07:57 +0530, Natarajan.T <[EMAIL PROTECTED]> wrote: > Hi All, > > How to Index remotely? > > For example I have a some documents in machine A and lucene Indexing and > searching server in machine B. > > How can do Index... > > Regards, > > Natarajan. > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]