Index: src/java/org/apache/lucene/index/IndexWriter.java
===================================================================
--- src/java/org/apache/lucene/index/IndexWriter.java	(revision 619469)
+++ src/java/org/apache/lucene/index/IndexWriter.java	(working copy)
@@ -3639,20 +3639,41 @@
    * {@link IndexWriter#setMaxFieldLength(int)} overrides the value set by
    * the constructor.
    */
-  public static final class MaxFieldLength extends Parameter implements java.io.Serializable {
+  public static final class MaxFieldLength {
 
     private int limit;
+    private String name;
 
-    private MaxFieldLength(String name, int limit) {
-      // typesafe enum pattern, no public constructor
-      super(name);
+    /**
+     * Public constructor to allow users to specify the maximum field size limit.
+     * 
+     * @param limit The maximum field length
+     */
+    public MaxFieldLength(int limit) {
+      name = "User-specified";
       this.limit = limit;
     }
-
+    
     public int getLimit() {
       return limit;
     }
+    
+    public String toString()
+    {
+      return name + ":" + limit;
+    }
 
+    /**
+     * Private type-safe-enum-pattern constructor.
+     * 
+     * @param name instance name
+     * @param limit maximum field length
+     */
+    private MaxFieldLength(String name, int limit) {
+      this.name = name;
+      this.limit = limit;
+    }
+
     /** Sets the maximum field length to {@link Integer#MAX_VALUE}. */
     public static final MaxFieldLength UNLIMITED
         = new MaxFieldLength("UNLIMITED", Integer.MAX_VALUE);
