public ExpandoObject BuildRequestComponent() { if (Components.Count == 0) { return(null); } ComponentBag filtersComponent = new ComponentBag(); filtersComponent.Set("filters", Components); ExpandoObject requestComponent = new ExpandoObject(); requestComponent.Add("filters", filtersComponent); return(requestComponent); }
public FiltersAggregate Add(string name, IFilterComponent filter) { Components.Set(name, filter); return(this); }
public TermsFilter(string key, object value) { _termsFilterComponents.Set(key, value); }
public TermsQuery(string key, object value) { _termsQueryComponents.Set(key, value); }