public DailyEmployeeIndex(IElasticConfiguration configuration, int version) : base(configuration, "daily-employees", version) { AddType(Employee = new DailyEmployeeType(this)); AddAlias($"{Name}-today", TimeSpan.FromDays(1)); AddAlias($"{Name}-last7days", TimeSpan.FromDays(7)); AddAlias($"{Name}-last30days", TimeSpan.FromDays(30)); }
public DailyEmployeeIndex(IElasticConfiguration configuration, int version) : base(configuration, "daily-employees", version) { AddType(Employee = new DailyEmployeeType(this)); AddAlias($"{Name}-today", TimeSpan.FromDays(1)); AddAlias($"{Name}-last7days", TimeSpan.FromDays(7)); AddAlias($"{Name}-last30days", TimeSpan.FromDays(30)); }