public override void FixtureSetup() { base.FixtureSetup(); _provider = (ProductIndexer)ExamineManager.Instance.IndexProviderCollection["MerchelloProductIndexer"]; _provider.RebuildIndex(); }
private static void DeleteProductVariantFromIndex(IProductVariant productVariant) { var cache = new VirtualProductContentCache(); cache.ClearVirtualCache(productVariant.ProductKey); ProductIndexer.DeleteFromIndex(((ProductVariant)productVariant).ExamineId.ToString(CultureInfo.InvariantCulture)); }
private static void IndexProductVariant(IProductVariant productVariant) { var cache = new VirtualProductContentCache(); cache.ClearVirtualCache(productVariant.ProductKey); ProductIndexer.ReIndexNode(productVariant.SerializeToXml().Root, IndexTypes.ProductVariant); }
public override void FixtureSetup() { base.FixtureSetup(); var warehouseService = this.PreTestDataWorker.WarehouseService; this._warehouse = warehouseService.GetDefaultWarehouse(); this._provider = (ProductIndexer)ExamineManager.Instance.IndexProviderCollection["MerchelloProductIndexer"]; this._provider.RebuildIndex(); }
private static void DeleteProductVariantFromIndex(IProductVariant productVariant) { ProductIndexer.DeleteFromIndex(((ProductVariant)productVariant).ExamineId.ToString(CultureInfo.InvariantCulture)); }
private static void DeleteProductFromIndex(IProduct product) { ProductIndexer.DeleteProductFromIndex(product); }
private static void IndexProductVariant(IProductVariant productVariant) { ProductIndexer.ReIndexNode(productVariant.SerializeToXml().Root, IndexTypes.ProductVariant); }
private static void IndexProduct(IProduct product) { ProductIndexer.AddProductToIndex(product); }
public void LaunchInstance() { ProductIndexer.List(); CategoriesListener.List(); }