lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Liaqat Ali <liaqatalim...@gmail.com>
Subject FSDirectory Again
Date Fri, 30 Nov 2007 14:20:58 GMT
No you are not getting me.  I have this original code. What i should use 
instead of this code to create  a directory, because the dir 
=FSDirectory.getDirectory(indexDir, true) is deprecated.

import org.apache.lucene.store.Directory;
import org.apache.lucene.store.FSDirectory;

protected Directory dir;

  protected void setUp() throws IOException {
    String indexDir =
      System.getProperty("java.io.tmpdir", "tmp") +
      System.getProperty("file.separator") + "index-dir";
    dir = FSDirectory.getDirectory(indexDir, true);
    addDocuments(dir);
  }




---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org


Mime
View raw message