diff --git a/src/java/overview.html b/src/java/overview.html
index 4a1206bca65..56fea571449 100644
--- a/src/java/overview.html
+++ b/src/java/overview.html
@@ -1,10 +1,10 @@
- Jakarta Lucene API
+ Apache Lucene API
-Jakarta Lucene is a high-performance, full-featured text search engine library.
+
Apache Lucene is a high-performance, full-featured text search engine library.
Here's a simple example how to use Lucene for indexing and searching (using JUnit
to check if the results are what we expect):
@@ -27,6 +27,7 @@ to check if the results are what we expect):
// if one exists):
//Directory directory = FSDirectory.getDirectory("/tmp/testindex", true);
IndexWriter iwriter = new IndexWriter(directory, analyzer, true);
+ iwriter.setMaxFieldLength(25000);
Document doc = new Document();
String text = "This is the text to be indexed.";
doc.add(new Field("fieldname", text, Field.Store.YES,
diff --git a/src/test/org/apache/lucene/TestDemo.java b/src/test/org/apache/lucene/TestDemo.java
index f408154c233..c420b879405 100644
--- a/src/test/org/apache/lucene/TestDemo.java
+++ b/src/test/org/apache/lucene/TestDemo.java
@@ -51,6 +51,7 @@ public class TestDemo extends TestCase {
// if one exists):
//Directory directory = FSDirectory.getDirectory("/tmp/testindex", true);
IndexWriter iwriter = new IndexWriter(directory, analyzer, true);
+ iwriter.setMaxFieldLength(25000);
Document doc = new Document();
String text = "This is the text to be indexed.";
doc.add(new Field("fieldname", text, Field.Store.YES,