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)
        {
            var repo = new Repo();

            repo.SaveToElasticsearchAddress();
            var addressX = repo.GetAddressFromElasticsearch(22);

            //repo.SaveToElasticsearchPerson();
            //var personX = repo.GetPersonFromElasticsearch(345);
            Console.WriteLine(addressX);
            //Console.WriteLine(personX);
        }
Esempio n. 3
0
        static void Main(string[] args)
        {
            Repo repo = new Repo();

            //repo.SaveToElasticsearchPerson();

            repo.SaveToElasticsearchStateProvince();
            var addressX = repo.GetAddressFromElasticsearch("37", "14");

            Console.WriteLine(addressX);

            DateTime beginDateTime = DateTime.UtcNow;

            Reindexer.ReindexStateProvince(beginDateTime);
            Reindexer.ReindexStateProvinceAddress(beginDateTime);

            // -28 documents because the countryCode was not reindexed.

            Console.WriteLine("Created new index from version 1 index");
            Console.ReadLine();
        }