title: How to create a new Lucene Document in Version.Lucene_35?
body: <p>Any idea how to create a lucene <code>Document</code> from Strings or Textfiles or Directories in the new version of Lucene? Where can i find the API in the current lucene version??</p>
  
  <p>previously in 2_9_4, i could:</p>
  
  <pre><code>IndexWriter = writer = new IndexWriter(indexDir, config);
  add(writer, "Lucene");
  </code></pre>
  
  <p>or even in 3_0_2:</p>
  
  <pre><code>IndexWriter = writer = new IndexWriter(indexDir, config);
  writer.addDocument(createDocument("lucene");
  </code></pre>
  
  <p>But now i'm clueless how the add document goes.
  How do i add textfile as a lucene Document? or even a Directory of textfiles?</p>