Any idea how to create a lucene Document
from Strings or Textfiles or Directories in the new version of Lucene? Where can i find the API in the current lucene version??
previously in 2_9_4, i could:
IndexWriter = writer = new IndexWriter(indexDir, config);
add(writer, "Lucene");
or even in 3_0_2:
IndexWriter = writer = new IndexWriter(indexDir, config);
writer.addDocument(createDocument("lucene");
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?