lucene-java-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dna...@apache.org
Subject svn commit: r703880 - /lucene/java/trunk/src/test/org/apache/lucene/TestDemo.java
Date Sun, 12 Oct 2008 21:21:25 GMT
Author: dnaber
Date: Sun Oct 12 14:21:25 2008
New Revision: 703880

URL: http://svn.apache.org/viewvc?rev=703880&view=rev
Log:
update to non-deprecated API (affects commented-out code only)

Modified:
    lucene/java/trunk/src/test/org/apache/lucene/TestDemo.java

Modified: lucene/java/trunk/src/test/org/apache/lucene/TestDemo.java
URL: http://svn.apache.org/viewvc/lucene/java/trunk/src/test/org/apache/lucene/TestDemo.java?rev=703880&r1=703879&r2=703880&view=diff
==============================================================================
--- lucene/java/trunk/src/test/org/apache/lucene/TestDemo.java (original)
+++ lucene/java/trunk/src/test/org/apache/lucene/TestDemo.java Sun Oct 12 14:21:25 2008
@@ -37,6 +37,8 @@
 /**
  * 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 @@
 
     // 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();



Mime
View raw message