public async Task <BulkResponse> LoadCitiesAsHints() { var section = (await GetHintSections()).FirstOrDefault(); if (section is null) { section = new HintSection("hello world"); await SaveSection(section); } var hints = Cities.GetHints(section); int bulkAmount = 10000; for (var i = 0; hints.Count > i; i += bulkAmount) { var selectedHints = hints.Skip(i).Take(bulkAmount).ToList(); var response = _elasticClient.Bulk(x => x .Index(hintWordIndex) .IndexMany(selectedHints)); } return(null); }