static void Main(string[] args) { var repo = new Repo(); repo.SaveToElasticsearchAddress(); var addressX = repo.GetAddressFromElasticsearch(22); //repo.SaveToElasticsearchPerson(); //var personX = repo.GetPersonFromElasticsearch(345); Console.WriteLine(addressX); //Console.WriteLine(personX); }
static void Main(string[] args) { Repo repo = new Repo(); repo.SaveToElasticsearchPerson(); //repo.SaveToElasticsearchStateProvince(); ////var addressX = repo.GetAddressFromElasticsearch("22"); ////Console.WriteLine(addressX); //DateTime beginDateTime = DateTime.UtcNow; //Reindexer.ReindexStateProvince(beginDateTime); //Reindexer.ReindexStateProvinceAddress(beginDateTime); //Console.WriteLine("Created new index from version 1 index"); Console.ReadLine(); }