Beispiel #1
0
 public BulkElasticMagazineIndex Post(BulkElasticMagazineIndex t)
 {
     ConsoleProcess.Start(t.GetType());
     CreateMapping();
     foreach (var elasticMagazine in t.ElasticMagazine.Batch(5000))
     {
         ConsoleProcess.Increment();
         ElasticSearch.BulkIndex(elasticMagazine.ToList());
     }
     return(t);
 }
Beispiel #2
0
 public BulkElasticOrderHistory Post(BulkElasticOrderHistory t)
 {
     ConsoleProcess.Start(t.GetType());
     CreateMapping();
     foreach (var elasticTitle in t.OrderHistories.Batch(5000))
     {
         ConsoleProcess.Increment();
         ElasticSearch.BulkIndex(elasticTitle.ToList());
     }
     return(t);
 }