public void Bool(Action <BoolFilterDescriptor <T> > booleanFilter) { var filter = new BoolFilterDescriptor <T>(); booleanFilter(filter); this.SetCacheAndName(filter); this.BoolFilter = filter; }
/// <summary> /// /// A filter that matches documents matching boolean combinations of other queries. /// Similar in concept to Boolean query, except that the clauses are other filters. /// </summary> public FilterContainer Bool(Action <BoolFilterDescriptor <T> > booleanFilter) { var filter = new BoolFilterDescriptor <T>(); if (booleanFilter != null) { booleanFilter(filter); } return(this.New(filter, f => f.Bool = filter)); }