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 <[email protected]> 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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to