public RadialSearchQuery(Field field, Geocode center, decimal radius, DistanceUnit unit = Sdk.DistanceUnit.Miles)
 {
     this.Field = field;
     this.Center = center;
     this.DistanceUnit = unit;
     this.Radius = radius;
 }
 public static BetweenQuery Between(Field field, DateTime greaterThanEqualTo, DateTime lessThanEqualTo)
 {
     return new BetweenQuery(field, new PrimtiveFieldValue(greaterThanEqualTo), new PrimtiveFieldValue(lessThanEqualTo));
 }
 private BetweenQuery(Field field, IFieldValue greaterThanEqualTo, IFieldValue lessThanEqualTo)
 {
     this.Field = field;
     this.GreaterThanEqualTo = greaterThanEqualTo;
     this.LessThanEqualTo = lessThanEqualTo;
 }
 public InQuery(Field field, IEnumerable<long> values)
 {
     this.Values = values.Select(x => new PrimtiveFieldValue(x)).ToArray();
     this.Field = field;
 }
 public static IQuery IsLessThanEqualTo(Field field, decimal value)
 {
     return new FieldQuery { Field = field, Operator = Operators.IsLessThanEqualTo, Value = new PrimtiveFieldValue(value) };
 }
 public IsNullQuery(Field field)
 {
     this.Field = field;
 }
 public static IQuery IsGreaterThanEqualTo(Field field, DateTime value)
 {
     return new FieldQuery { Field = field, Operator = Operators.IsGreaterThanEqualTo, Value = new PrimtiveFieldValue(value) };
 }
 public static IQuery IsLessThan(Field field, DateTime value)
 {
     return new FieldQuery { Field = field, Operator = Operators.IsLessThan, Value = new PrimtiveFieldValue(value) };
 }
 public static IQuery IsGreaterThan(Field field, long value)
 {
     return new FieldQuery { Field = field, Operator = Operators.IsGreaterThan, Value = new PrimtiveFieldValue(value) };
 }
 public static FieldQuery IsEqualTo(Field field, DateTime value)
 {
     return new FieldQuery() { Field = field, Value = new PrimtiveFieldValue(value), Operator = Operators.IsEqualTo };
 }
 internal static IQuery FreeTextMatches(Field field, string freeTextExpression)
 {
     return new FieldQuery { Field = field, Operator = Operators.Match, Value = new PrimtiveFieldValue(freeTextExpression) };
 }
 public static IQuery EndsWith(Field field, string value)
 {
     return new FieldQuery { Field = field, Operator = Operators.Like, Value = new PrimtiveFieldValue("*" + value) };
 }
 public PolygonSearchQuery(Field field, IEnumerable<Geocode> points)
 {
     this.Field = field;
     this.Points = new List<Geocode>(points);
 }