Beispiel #1
0
 public static Sort ByFieldDecreasing(Field field)
 {
     return new Sort(field,
                     ((field.FieldType == FieldType.Numeric) || (field.FieldType == FieldType.NumericDate)
                          ? SortMethod.NumberDecreasing
                          : SortMethod.ReverseAlphabetical));
 }
Beispiel #2
0
 public static Sort ByFieldIncreasing(Field field)
 {
     if (field == null)
     {
         throw new ArgumentNullException("field", "Can not sort on a null field");
     }
     return new Sort(field,
                     ((field.FieldType == FieldType.Numeric) || (field.FieldType == FieldType.NumericDate)
                          ? SortMethod.NumberIncreasing
                          : SortMethod.Alphabetical));
 }
Beispiel #3
0
        internal Term(Field field, string value)
            : this(new[] { field }, new[] { value })
        {

        }
Beispiel #4
0
        internal Term(Field field, IEnumerable<string> values)
            : this(new[] { field }, values)
        {

        }
Beispiel #5
0
 internal Sort(Field field, SortMethod sortMethod)
 {
     SortField = field;
     Order = null;
     Method = sortMethod;
 }