Hey, you are right FSDirectory is abstract, yet the fact that it doesn't declare an abstract method doesn't make it wrong. Please use the static factory methods FSDirectory.open(File) to create an instance. This factory will create a reasonable default for your platform. see the javadoc for details (http://lucene.apache.org/java/3_3_0/api/core/org/apache/lucene/store/FSDirectory.html)
simon On Sun, Jul 10, 2011 at 5:35 PM, Parsa Moshrefi <parsa.moshr...@gmail.com> wrote: > Greeting, > There's a mistake in writing the type of the class FSDirectory in the core > of Lucene 3.3. This class is defined as an abstract one while No abstract > method is found inside. Also it yields some other problems like not being > able to create an instance of FSDirectory in the code. > Please answer me as soon as possible !! > > regards > --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org For additional commands, e-mail: java-user-h...@lucene.apache.org