You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@lucene.apache.org by "Schaeffer, David" <Da...@ca.com> on 2002/10/16 23:02:49 UTC

Enabling URL-based read access to the search index

I am planning to upgrade from Lucene 1.0 to Jakarta Lucene 1.2.  My current implementation uses Jason Pell's URLDirectory class so that Lucene can access the search index while running in an applet.  I modified IndexReader.java to use URLDirectory instead of FSDirectory.

Is there a more appropriate way to allow Lucene to function using URL-based file access?  I would prefer to extend classes or interfaces instead of modifying them.  I have no requirement to update the search index from the applet.

Thanks,
David 

David Schaeffer
Computer Associates
Programmer
tel: +1 856 914-8385
david.schaeffer@ca.com


Re: Enabling URL-based read access to the search index

Posted by Doug Cutting <cu...@lucene.com>.

Schaeffer, David wrote:
> I am planning to upgrade from Lucene 1.0 to Jakarta Lucene 1.2.  My current implementation uses Jason Pell's URLDirectory class so that Lucene can access the search index while running in an applet.  I modified IndexReader.java to use URLDirectory instead of FSDirectory.
> 
> Is there a more appropriate way to allow Lucene to function using URL-based file access?  I would prefer to extend classes or interfaces instead of modifying them.  I have no requirement to update the search index from the applet.

Why do you need to modify IndexReader, rather than just pass it a 
different Directory implementation?

Doug


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: Enabling URL-based read access to the search index

Posted by Terry Steichen <te...@net-frame.com>.
David,

The url-based file access piques my curiousity.  Could you point me to the
URLDirectory code?  And, if you are able/willing, perhaps to your changes to
IndexReader.java?

Regards,

Terry

----- Original Message -----
From: "Schaeffer, David" <Da...@ca.com>
To: <lu...@jakarta.apache.org>
Sent: Wednesday, October 16, 2002 5:02 PM
Subject: Enabling URL-based read access to the search index


I am planning to upgrade from Lucene 1.0 to Jakarta Lucene 1.2.  My current
implementation uses Jason Pell's URLDirectory class so that Lucene can
access the search index while running in an applet.  I modified
IndexReader.java to use URLDirectory instead of FSDirectory.

Is there a more appropriate way to allow Lucene to function using URL-based
file access?  I would prefer to extend classes or interfaces instead of
modifying them.  I have no requirement to update the search index from the
applet.

Thanks,
David

David Schaeffer
Computer Associates
Programmer
tel: +1 856 914-8385
david.schaeffer@ca.com




--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>