Virtual Happy Hour is canceled this month (March) due to Good Friday.
Virtual Happy Hour is canceled this month (March) due to Good Friday.
Please look at my blog post on detailed information on how to filter what to be indexed
But simple way:
ContentIndexer.Instance.Conventions.ForInstancesOf<[ContentTypeName]>().ShouldIndex(x => false);
I tried it, but for some reason i am getting the below error:
'EPiServer.Find.Cms.Conventions.IContentIndexerConventions' does not contain a definition for 'ForInstancesOf' and the best extension method overload 'EPiServer.Find.ClientConventions.ConventionsExtensions.ForInstancesOf<T>(EPiServer.Find.IClientConventions)' has some invalid arguments
Thanks
Make sure you have included: 'EPiServer.Find.Cms.Conventions' (ForInstancesOf<>() is an extension method).
/Henrik
Hi,
You Need to added the code suggested by Henrik F in Intialization module.
using EPiServer;
using EPiServer.Commerce.Routing;
using EPiServer.Commerce.SpecializedProperties;
using EPiServer.Core;
using EPiServer.Find.ClientConventions;
using EPiServer.Find.Cms;
using EPiServer.Find.Cms.Conventions;
using EPiServer.Find.Framework;
using EPiServer.Framework;
using EPiServer.Framework.Initialization;
using EPiServer.Security;
using EPiServer.ServiceLocation;
using EPiServer.Web.Routing;
public class CommerceInitialization : IConfigurableModule
{
///
public void Initialize(InitializationEngine context)
{
ContentIndexer.Instance.Conventions.ForInstancesOf<[ContentTypeName]>().ShouldIndex(x => false);
}
//
}
Regards
/K
Hi,
How can I exclude few page type from being indexed by Episerver Find.
Thanks
Pankaj