示例#1
0
 public SearchRequest <T> Not(SearchClause <T> clause)
 {
     clause.Field.TermOccur = SearchTerm.TermOccurance(Occurance.NOT);
     Fields.Add(clause.Field);
     return(this);
 }
示例#2
0
 public SearchRequest <T> Should(SearchClause <T> clause)
 {
     clause.Field.TermOccur = SearchTerm.TermOccurance(Occurance.SHOULD);
     Fields.Add(clause.Field);
     return(this);
 }