Created: Feb 11, 2004 1:25:29 PM /// ///
null
.
///
public SortField(System.String field)
{
this.field = String.Intern(field);
}
/// null
.
///
/// True if natural order should be reversed.
///
public SortField(System.String field, bool reverse)
{
this.field = String.Intern(field);
this.reverse = reverse;
}
/// null
if
/// type
is SCORE or DOC.
///
/// Type of values in the terms.
///
public SortField(System.String field, int type)
{
this.field = (field != null)?String.Intern(field):field;
this.type = type;
}
/// null
if
/// type
is SCORE or DOC.
///
/// Type of values in the terms.
///
/// True if natural order should be reversed.
///
public SortField(System.String field, int type, bool reverse)
{
this.field = (field != null) ? String.Intern(field) : field;
this.type = type;
this.reverse = reverse;
}
/// null
.
///
/// Locale of values in the Field.
///
public SortField(System.String field, System.Globalization.CultureInfo locale)
{
this.field = String.Intern(field);
this.type = STRING;
this.locale = locale;
}
/// null
.
///
/// Locale of values in the Field.
///
public SortField(System.String field, System.Globalization.CultureInfo locale, bool reverse)
{
this.field = String.Intern(field);
this.type = STRING;
this.locale = locale;
this.reverse = reverse;
}
/// null
.
///
/// Returns a comparator for sorting hits.
///
public SortField(System.String field, SortComparatorSource comparator)
{
this.field = (field != null)?String.Intern(field):field;
this.type = CUSTOM;
this.factory = comparator;
}
/// null
.
///
/// Returns a comparator for sorting hits.
///
/// True if natural order should be reversed.
///
public SortField(System.String field, SortComparatorSource comparator, bool reverse)
{
this.field = (field != null)?String.Intern(field):field;
this.type = CUSTOM;
this.reverse = reverse;
this.factory = comparator;
}
/// null
/// if the sort is by SCORE or DOC.
/// null
.
/// null
if no Locale was specified.
/// null
.
///