Thanks Doug.  I see my mistake now.

I should have used IndexSearcher(Directory directory), where directory is an instance 
of URLDirectory.  Instead I used IndexSearcher(String path).  

That seems obvious, and the approach is vastly superior.  I have no idea why I didn't 
do it that way before.  

Thanks,
David

David Schaeffer
Computer Associates
Programmer
tel: +1 856 914-8385
[EMAIL PROTECTED]

 -----Original Message-----
From:   Doug Cutting [mailto:[EMAIL PROTECTED]] 
Sent:   Wednesday, October 16, 2002 5:43 PM
To:     Lucene Users List
Subject:        Re: Enabling URL-based read access to the search index



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:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>



--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to