lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Simon Willnauer <simon.willna...@googlemail.com>
Subject Re: i'm having some trouble with class FSDirectory
Date Thu, 25 Aug 2011 06:12:35 GMT
just use the static factory method FSDirectory#open(File) to obtain a
FSDirectory instance

simon

On Wed, Aug 24, 2011 at 3:55 PM, Mostafa Hadian <hadian.mt@gmail.com> wrote:
> hello.
> there is this piece of code in the book "lucene in action" :
> Directory dir = new FSDirectory(new File(indexDir), null);
> but class FSDirectory is an abstract class and cannot be instantiated like
> this.
> thank you very much for your helping.
>

---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org


Mime
View raw message