Re: i'm having some trouble with class FSDirectory

2011-08-24 Thread Simon Willnauer
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 wrote: > hello. > there is this piece of code in the book "lucene in action" : > Directory dir = new FSDirectory(new File(indexDir), null); > but class

RE: i'm having some trouble with class FSDirectory

2011-08-24 Thread Sendros, Jason
- From: Mostafa Hadian [mailto:hadian...@gmail.com] Sent: Wednesday, August 24, 2011 9:55 AM To: java-user@lucene.apache.org Subject: i'm having some trouble with class FSDirectory hello. there is this piece of code in the book "lucene in action" : Directory dir = new FSDir

i'm having some trouble with class FSDirectory

2011-08-24 Thread Mostafa Hadian
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.