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
Hi Mostafa, Try looking through the API for help with these types of questions: http://lucene.apache.org/java/3_3_0/api/all/org/apache/lucene/store/FSDi rectory.html You can use a number of FSDirectory subclasses depending on your circumstances. Hope this helps! Jason -Original Message