Class IndexEngineInitialize

    • Constructor Detail

      • IndexEngineInitialize

        public IndexEngineInitialize()
    • Method Detail

      • init

        public void init()
        Since version 1.3 of Lucene, lock files are stored in the java.io.tmpdir system's property By default on Windows, it's %USER_DIR%\Local Settings\TEMP and /tmp on Unix
        Specified by:
        init in interface Initialization
      • removeLockFiles

        protected void removeLockFiles​(File theFile)
      • isLockFile

        protected boolean isLockFile​(String fileName)
        Since version 1.3 of Lucene, lock files have names that start with "lucene-" followed by an MD5 hash of the index directory path. Since version 2.3 of Lucene, lock files are in index dirs and named "write.lock"
        Parameters:
        fileName - - the file to test
        Returns:
        true if the file is a lucene's lock file, false otherwise.