public async Task ReIndexElasticSearch() { var brewerys = await _breweryRepository.GetAllAsync(0, int.MaxValue, "Members.Member", "Origin", "Beers", "Socials", "Beers.Beer.IBU", "Beers.Beer.ABV", "Beers.Beer.SRM", "Beers.Beer.BeerStyle"); var brewerysDto = Mapper.Map <IEnumerable <Brewery>, IEnumerable <BreweryDto> >(brewerys); await _breweryElasticsearch.UpdateAllAsync(brewerysDto); }
public async Task ReIndexElasticSearch() { var brewerys = await _breweryRepository.GetAllAsync(0, int.MaxValue, null, null, null); var brewerysDto = AutoMapper.Mapper.Map <IEnumerable <Brewery>, IEnumerable <BreweryDto> >(brewerys); await _breweryElasticsearch.UpdateAllAsync(brewerysDto); }