private void Init <T>()
 {
     PocoData      = new ElasticSearchPocoDataFactory().ForType(typeof(T));
     PocoIndexName = PocoData.DefaultIndexName.ToLower() + "_" + DateTime.Now.Year.ToString();
     PocoAlias     = PocoData.Alias;
     PocoTemplate  = PocoData.DefaultTemplateName;
 }
 public AbstractRepository()
 {
     PocoData      = new ElasticSearchPocoDataFactory().ForType(typeof(TEntity));
     PocoIndexName = PocoData.DefaultIndexName.ToLower() + "_" + DateTime.Now.Year.ToString();
     PocoAlias     = string.IsNullOrEmpty(PocoData.Alias) ? PocoIndexName + "_alias" : PocoData.Alias;
     client        = new ElasticSearchConfiguration(PocoAlias).GetClient();
 }
Exemple #3
0
 private void Init <T>()
 {
     PocoData     = new ElasticSearchPocoDataFactory().ForType(typeof(T));
     PocoAlias    = PocoData.Alias;
     PocoTemplate = PocoData.DefaultTemplateName;
 }