code: public void init() throws IOException {
          File path = resolveIndexDirectoryPath();
          indexTracker = new IndexTracker(path);
          indexDirectory = FSDirectory.open(path);
          tika = new Tika(null, new HtmlParser());
          Analyzer analyzer = new StandardAnalyzer();
          IndexWriterConfig config = new IndexWriterConfig(Version.LATEST, analyzer);
          writer = new IndexWriter(indexDirectory, config);
      }
docs: Initialize the index writer.
  
  @throws IOException Unspecified IO exception.