lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ehatc...@apache.org
Subject cvs commit: jakarta-lucene/src/java/org/apache/lucene/search CachingWrapperFilter.java FilteredQuery.java QueryFilter.java SortField.java
Date Sat, 08 May 2004 19:54:12 GMT
ehatcher    2004/05/08 12:54:12

  Modified:    src/java/org/apache/lucene/search CachingWrapperFilter.java
                        FilteredQuery.java QueryFilter.java SortField.java
  Log:
  enhance toString methods
  
  Revision  Changes    Path
  1.4       +4 -0      jakarta-lucene/src/java/org/apache/lucene/search/CachingWrapperFilter.java
  
  Index: CachingWrapperFilter.java
  ===================================================================
  RCS file: /home/cvs/jakarta-lucene/src/java/org/apache/lucene/search/CachingWrapperFilter.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- CachingWrapperFilter.java	29 Mar 2004 22:48:03 -0000	1.3
  +++ CachingWrapperFilter.java	8 May 2004 19:54:12 -0000	1.4
  @@ -64,4 +64,8 @@
   
       return bits;
     }
  +
  +  public String toString() {
  +    return "CachingWrapperFilter("+filter+")";
  +  }
   }
  
  
  
  1.3       +2 -2      jakarta-lucene/src/java/org/apache/lucene/search/FilteredQuery.java
  
  Index: FilteredQuery.java
  ===================================================================
  RCS file: /home/cvs/jakarta-lucene/src/java/org/apache/lucene/search/FilteredQuery.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- FilteredQuery.java	21 Apr 2004 20:15:55 -0000	1.2
  +++ FilteredQuery.java	8 May 2004 19:54:12 -0000	1.3
  @@ -102,7 +102,7 @@
   
     /** Prints a user-readable version of this query. */
     public String toString (String s) {
  -    return "filtered("+query.toString(s)+")";
  +    return "filtered("+query.toString(s)+")->"+filter;
     }
   
     /** Returns true iff <code>o</code> is equal to this. */
  
  
  
  1.6       +5 -1      jakarta-lucene/src/java/org/apache/lucene/search/QueryFilter.java
  
  Index: QueryFilter.java
  ===================================================================
  RCS file: /home/cvs/jakarta-lucene/src/java/org/apache/lucene/search/QueryFilter.java,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- QueryFilter.java	29 Mar 2004 22:48:03 -0000	1.5
  +++ QueryFilter.java	8 May 2004 19:54:12 -0000	1.6
  @@ -71,4 +71,8 @@
   
       return bits;
     }
  +
  +  public String toString() {
  +    return "QueryFilter("+query+")";
  +  }
   }
  
  
  
  1.7       +3 -2      jakarta-lucene/src/java/org/apache/lucene/search/SortField.java
  
  Index: SortField.java
  ===================================================================
  RCS file: /home/cvs/jakarta-lucene/src/java/org/apache/lucene/search/SortField.java,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- SortField.java	22 Apr 2004 22:23:14 -0000	1.6
  +++ SortField.java	8 May 2004 19:54:12 -0000	1.7
  @@ -173,7 +173,8 @@
         case DOC: buffer.append("<doc>");
                   break;
   
  -      case CUSTOM: buffer.append ("<custom:\""+"\">");
  +      case CUSTOM: buffer.append ("<custom:\"" + field + "\": "
  +                                               + factory + ">");
                   break;
   
         default: buffer.append("\"" + field + "\"");
  
  
  

---------------------------------------------------------------------
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