Exemplo n.º 1
0
 public BinaryTerm And(Token value, Func<Term, Term> groupSetup)
 {
     return And(_field, value, groupSetup);
 }
Exemplo n.º 2
0
 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);
 }
Exemplo n.º 3
0
 public BinaryTerm And(Token value)
 {
     return And(_field, value);
 }
Exemplo n.º 4
0
 public BinaryTerm And(string field, Token value)
 {
     return new BinaryTerm(Search, field, BinaryTerm.Op.And, this, value);
 }
Exemplo n.º 5
0
 public BinaryTerm OrBetween(string field, Token from, string to, bool inclusive = true)
 {
     return OrBetween(field, from, Token.Is(to), inclusive);
 }
Exemplo n.º 6
0
 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);
 }
Exemplo n.º 7
0
 public BinaryTerm OrBetween(Token from, Token to, bool inclusive = true)
 {
     return OrBetween(_field, from, to, inclusive);
 }
Exemplo n.º 8
0
 public BinaryTerm OrBetween(string field, string from, Token to, bool inclusive = true)
 {
     return OrBetween(field, Token.Is(from), to, inclusive);
 }
Exemplo n.º 9
0
 public BinaryTerm AndBetween(Token from, string to, bool inclusive = true)
 {
     return AndBetween(_field, from, Token.Is(to), inclusive);
 }
Exemplo n.º 10
0
 public BinaryTerm Or(Token value)
 {
     return Or(_field, value);
 }
Exemplo n.º 11
0
 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;
 }
Exemplo n.º 12
0
 public Term Between(Token from, Token to, bool inclusive = true)
 {
     _term = new RangeTerm(this, _field, from, to, inclusive);
     return _term;
 }
Exemplo n.º 13
0
 public Term Between(string from, Token to, bool inclusive = true)
 {
     return Between(Token.Is(from), to, inclusive);
 }
Exemplo n.º 14
0
 public Term Between(Token from, string to, bool inclusive = true)
 {
     return Between(from, Token.Is(to), inclusive);
 }
Exemplo n.º 15
0
 public Term Search(Token value)
 {
     _term = new UnaryTerm(this, _field, value);
     return _term;
 }