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...@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-unsubscr...@lucene.apache.org
For additional commands, e-mail: java-user-h...@lucene.apache.org

Reply via email to