LUCENE-1665: deprecate SortField.AUTO

git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@781027 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Michael McCandless 2009-06-02 13:09:11 +00:00
parent 92cf862990
commit 0939711748
1 changed files with 6 additions and 2 deletions

View File

@ -49,7 +49,8 @@ implements Serializable {
/** 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 @@ implements Serializable {
/** 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 @@ implements Serializable {
* 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);