code: private File getIndexDirectory()
      {
          File file = new File(luceneDirPath);
  
          if (!file.isDirectory())
          {
              file.mkdir();
          }
          return file;
      }
docs: Creates a Lucene index directory if it does not exist.
  
  @return the index directory