lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Schaeffer, David" <David.Schaef...@ca.com>
Subject RE: Enabling URL-based read access to the search index
Date Wed, 16 Oct 2002 22:14:39 GMT
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
david.schaeffer@ca.com

 -----Original Message-----
From: 	Doug Cutting [mailto:cutting@lucene.com] 
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:lucene-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:lucene-user-help@jakarta.apache.org>



--
To unsubscribe, e-mail:   <mailto:lucene-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:lucene-user-help@jakarta.apache.org>


Mime
View raw message