Beispiel #1
0
        private void ConfigureElasticSearch()
        {
            if (Task.Run(async() => await IndexingService.IndexExistsAsync()).Result)
            {
                Task.Run(async() => await IndexingService.DeleteIndexAsync());
            }

            Task.Run(async() => await IndexingService.CreateIndexAsync());
        }