volume_up

A critical vulnerability was discovered in React Server Components (Next.js). Our systems remain protected but we advise to update packages to newest version. Learn More

volume_up

A critical vulnerability was discovered in React Server Components (Next.js). Our systems remain protected but we advise to update packages to newest version. Learn More

ExcludeField missing from 7.5?

I'm struggling to find a way to exclude properties without JsonIgnore. In the documentation example below there's a reference to an ExcludeField-method that I can't seem to find anywhere. Is it removed? And yes I have the referenced using declaration in place :)

//using EPiServer.Find.Cms.Conventions; ContentIndexer.Instance.Conventions .ForInstancesOf<PageData>() .ExcludeField(x => x.ACL)

    

#82850
Mar 20, 2014 14:26
Vote:

Use SearchClient instead of ContentIndexer.

SearchClient.Instance.Conventions.ForInstancesOf<PageData>().ExcludeField(x => x.ACL);

    

#82852
Mar 20, 2014 14:40

Thanks!

#82855
Mar 20, 2014 14:59
error This topic was created over six months ago and has been resolved. If you have a similar question, please create a new topic and refer to this one.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.