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 SortField.java
Date Sun, 04 Apr 2004 15:47:31 GMT
ehatcher    2004/04/04 08:47:31

  Modified:    src/java/org/apache/lucene/search SortField.java
  Log:
  reverse misunderstanding - now just simply denote the reverse flag rather than interpret
ascending or descending.
  
  Revision  Changes    Path
  1.5       +4 -3      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.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- SortField.java	4 Apr 2004 15:28:14 -0000	1.4
  +++ SortField.java	4 Apr 2004 15:47:31 -0000	1.5
  @@ -146,8 +146,9 @@
         default: buffer.append("\"" + field + "\"");
                  break;
       }
  -    
  -    buffer.append(reverse ? " DESC" : " ASC");
  +
  +    if (reverse)
  +      buffer.append('!');
   
       return buffer.toString();
     }
  
  
  

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