public BinaryTerm And(Token value, Func<Term, Term> groupSetup) { return And(_field, value, groupSetup); }
public BinaryTerm And(string field, Token value, Func<Term, Term> groupSetup) { var groupedTerm = groupSetup(new UnaryTerm(Search, field, value)); var groupTerm = new GroupTerm(Search, field, groupedTerm); return new BinaryTerm(Search, field, BinaryTerm.Op.And, this, groupTerm); }
public BinaryTerm And(Token value) { return And(_field, value); }
public BinaryTerm And(string field, Token value) { return new BinaryTerm(Search, field, BinaryTerm.Op.And, this, value); }
public BinaryTerm OrBetween(string field, Token from, string to, bool inclusive = true) { return OrBetween(field, from, Token.Is(to), inclusive); }
public BinaryTerm OrBetween(string field, Token from, Token to, bool inclusive = true) { var range = new RangeTerm(Search, field, from, to, inclusive); return new BinaryTerm(Search, field, BinaryTerm.Op.Or, this, range); }
public BinaryTerm OrBetween(Token from, Token to, bool inclusive = true) { return OrBetween(_field, from, to, inclusive); }
public BinaryTerm OrBetween(string field, string from, Token to, bool inclusive = true) { return OrBetween(field, Token.Is(from), to, inclusive); }
public BinaryTerm AndBetween(Token from, string to, bool inclusive = true) { return AndBetween(_field, from, Token.Is(to), inclusive); }
public BinaryTerm Or(Token value) { return Or(_field, value); }
public Term Group(Token value, Func<Term, Term> groupSetup) { var groupedTerm = groupSetup(new UnaryTerm(this, _field, value)); _grouped = true; _term = new GroupTerm(this, _field, groupedTerm); return _term; }
public Term Between(Token from, Token to, bool inclusive = true) { _term = new RangeTerm(this, _field, from, to, inclusive); return _term; }
public Term Between(string from, Token to, bool inclusive = true) { return Between(Token.Is(from), to, inclusive); }
public Term Between(Token from, string to, bool inclusive = true) { return Between(from, Token.Is(to), inclusive); }
public Term Search(Token value) { _term = new UnaryTerm(this, _field, value); return _term; }