public Order(OrderOptionEnum ot, int idO, int idU, int wanted, int satisfied, string date, bool closed = false)
 {
     Wanted = wanted;
     Satisfied = satisfied;
     Date = date;
     IdOrder = idO;
     IdUser = idU;
     OrderType = ot;
     Closed = closed;
 }
        private TermsStatisticsFacet(string facetName, string keyField)
            : base(facetName)
        {
            if (string.IsNullOrWhiteSpace(keyField))
                throw new ArgumentNullException("field", "TermsStatisticsFacet requires a field.");

            KeyField = keyField;
            Size = _SIZE_DEFAULT;
            ShardSize = _SIZE_DEFAULT;
            Order = _ORDER_DEFAULT;
        }