Esempio n. 1
0
        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);
        }
Esempio n. 2
0
        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);
 }