I am wondering if items saved via call IContentRepository.Save are automatically indexed on Find. This is question about Commerce.
For example I am saving product under some category parents with new name. What behavior should I expect from Find?
var freshNewName = "Fresh New Name";
var clone = brandProductContent.CreateWritableClone();
clone.Name = freshNewName;
clone.DisplayName = freshNewName;
I found that for CMS is working automatically under certain circumstainces (Indexing/Introduction): “Given that we have referenced the EPiServer.Find.Cms assembly in our EPiServer CMS project published content will be automatically indexed. Content are also reindexed, or deleted from the index, when they are saved, moved or deleted. Each language version …”.
It will be indexed automatically by default (if you are not disabling the event-driven indexing).
I supposed this. Can you post here example of deactivation code, please? I not sure for what to search if I am about to verify this.
My memory is rusty now, but technically you can add episerver:FindIndexCatalogContent setting with value = false to prevent indexing catalog content.
But as I said that might not work for content-level events ...
Actually, my last question was about content-level events.