lucene-java-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mikemcc...@apache.org
Subject svn commit: r781027 - /lucene/java/trunk/src/java/org/apache/lucene/search/SortField.java
Date Tue, 02 Jun 2009 13:09:11 GMT
Author: mikemccand
Date: Tue Jun  2 13:09:11 2009
New Revision: 781027

URL: http://svn.apache.org/viewvc?rev=781027&view=rev
Log:
LUCENE-1665: deprecate SortField.AUTO

Modified:
    lucene/java/trunk/src/java/org/apache/lucene/search/SortField.java

Modified: lucene/java/trunk/src/java/org/apache/lucene/search/SortField.java
URL: http://svn.apache.org/viewvc/lucene/java/trunk/src/java/org/apache/lucene/search/SortField.java?rev=781027&r1=781026&r2=781027&view=diff
==============================================================================
--- lucene/java/trunk/src/java/org/apache/lucene/search/SortField.java (original)
+++ lucene/java/trunk/src/java/org/apache/lucene/search/SortField.java Tue Jun  2 13:09:11
2009
@@ -49,7 +49,8 @@
   /** Guess type of sort based on field contents.  A regular expression is used
    * to look at the first term indexed for the field and determine if it
    * represents an integer number, a floating point number, or just arbitrary
-   * string characters. */
+   * string characters.
+   * @deprecated Please specify the exact type, instead.*/
   public static final int AUTO = 2;
 
   /** Sort using term values as Strings.  Sort values are String and lower
@@ -114,7 +115,9 @@
 
   /** Creates a sort by terms in the given field where the type of term value
    * is determined dynamically ({@link #AUTO AUTO}).
-   * @param field Name of field to sort by, cannot be <code>null</code>.
+   * @param field Name of field to sort by, cannot be
+   * <code>null</code>.
+   * @deprecated Please specify the exact type instead.
    */
   public SortField (String field) {
     initFieldType(field, AUTO);
@@ -124,6 +127,7 @@
    * the type of term value is determined dynamically ({@link #AUTO AUTO}).
    * @param field Name of field to sort by, cannot be <code>null</code>.
    * @param reverse True if natural order should be reversed.
+   * @deprecated Please specify the exact type instead.
    */
   public SortField (String field, boolean reverse) {
     initFieldType(field, AUTO);



Mime
View raw message