lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dna...@apache.org
Subject cvs commit: jakarta-lucene/src/java/org/apache/lucene/document Field.java
Date Wed, 06 Oct 2004 20:03:25 GMT
dnaber      2004/10/06 13:03:25

  Modified:    src/java/org/apache/lucene/document Field.java
  Log:
  make toString() output slightly more logical (compressed only refers to stored fields)
  
  Revision  Changes    Path
  1.28      +6 -7      jakarta-lucene/src/java/org/apache/lucene/document/Field.java
  
  Index: Field.java
  ===================================================================
  RCS file: /home/cvs/jakarta-lucene/src/java/org/apache/lucene/document/Field.java,v
  retrieving revision 1.27
  retrieving revision 1.28
  diff -u -r1.27 -r1.28
  --- Field.java	6 Oct 2004 19:55:42 -0000	1.27
  +++ Field.java	6 Oct 2004 20:03:25 -0000	1.28
  @@ -542,8 +542,13 @@
     /** Prints a Field for human consumption. */
     public final String toString() {
       StringBuffer result = new StringBuffer();
  -    if (isStored)
  +    if (isStored) {
         result.append("stored");
  +      if (isCompressed)
  +        result.append("/compressed");
  +      else
  +        result.append("/uncompressed");
  +    }
       if (isIndexed) {
         if (result.length() > 0)
           result.append(",");
  @@ -573,12 +578,6 @@
         if (result.length() > 0)
           result.append(",");
         result.append("binary");
  -    }
  -    
  -    if (isCompressed) {
  -      if (result.length() > 0)
  -        result.append(",");
  -      result.append("compressed");
       }
       
       result.append('<');
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: lucene-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: lucene-dev-help@jakarta.apache.org


Mime
View raw message