Beispiel #1
0
        public async Task <bool> BulkInsertAsync(List <ProductElasticIndexDto> productList)
        {
            await _elasticSearchService.CreateProductIndexAsync <ProductElasticIndexDto, int>(ElasticSearchItemsConst.ProductIndexName);

            await _elasticSearchService.BulkAddOrUpdate <ProductElasticIndexDto, int>(ElasticSearchItemsConst.ProductIndexName, productList);

            return(await Task.FromResult <bool>(true));
        }