lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From John Wang <john.w...@gmail.com>
Subject Re: Remotely Index
Date Thu, 16 Dec 2004 15:13:44 GMT
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
<natarajant@crimsonlogic.co.in> 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: lucene-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: lucene-user-help@jakarta.apache.org


Mime
View raw message