Interface FSDirectoryFactory


public interface FSDirectoryFactory
FSDirectoryFactory allows host application choose specific FSDirectory implementation used during index update. This is useful in some environments where default Lucene heuristics results in suboptimal choice of FSDirectory. For example, MMapDirectory used by default on 64 bit Linux JDK results in heavy operating system swap with certain Linux configuration and host application can choose NIOFSDirectory to avoid the problem.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final FSDirectoryFactory
    Default implementation that lets Lucene choose FSDirectory implementation.
  • Method Summary

    Modifier and Type
    Method
    Description
    org.apache.lucene.store.FSDirectory
    open(File indexDir)
     
  • Field Details

    • DEFAULT

      static final FSDirectoryFactory DEFAULT
      Default implementation that lets Lucene choose FSDirectory implementation.
  • Method Details