Apache Lucene open-source search software
update to non-deprecated API (affects commented-out code only)
Daniel Naber7ecd3260adf7
diff --git a/src/test/org/apache/lucene/TestDemo.java b/src/test/org/apache/lucene/TestDemo.javaindex 4f58b5524dd..1b432efe84f 100644--- a/src/test/org/apache/lucene/TestDemo.java+++ b/src/test/org/apache/lucene/TestDemo.java@@ -37,6 +37,8 @@ import org.apache.lucene.util._TestUtil;/*** A very simple demo used in the API documentation (src/java/overview.html).*+ * Please try to keep src/java/overview.html up-to-date when making changes+ * to this class.*/public class TestDemo extends LuceneTestCase {@@ -46,10 +48,8 @@ public class TestDemo extends LuceneTestCase {// Store the index in memory:Directory directory = new RAMDirectory();- // To store an index on disk, use this instead (note that the- // parameter true will overwrite the index in that directory- // if one exists):- //Directory directory = FSDirectory.getDirectory("/tmp/testindex", true);+ // To store an index on disk, use this instead:+ //Directory directory = FSDirectory.getDirectory("/tmp/testindex");IndexWriter iwriter = new IndexWriter(directory, analyzer, true,new IndexWriter.MaxFieldLength(25000));Document doc = new Document();