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 FSDirectoryFactory DEFAULT
      Default implementation that lets Lucene choose FSDirectory implementation.
    • Field Detail

      • DEFAULT

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

      • open

        org.apache.lucene.store.FSDirectory open​(java.io.File indexDir)
                                          throws java.io.IOException
        Throws:
        java.io.IOException