Пример #1
0
        public async Task ReIndexHopsElasticSearch()
        {
            var hops = await _hopRepository.GetAllAsync("Flavours.Flavour", "Origin", "Substituts");

            var hopsDto = Mapper.Map <IList <Hop>, IList <HopDto> >(hops);
            await _hopElasticsearch.UpdateAllAsync(hopsDto);
        }
Пример #2
0
        public async Task ReIndexHopsElasticSearch()
        {
            var hops = await _hopRepository.GetAllAsync(0, 10000);

            var hopsDto = AutoMapper.Mapper.Map <IEnumerable <Hop>, IList <HopDto> >(hops);
            await _hopElasticsearch.UpdateAllAsync(hopsDto);

            await IndexAromaWheel();
        }