A critical vulnerability was discovered in React Server Components (Next.js). Our Systems Remain Fully Protected. Learn More.
AI OnAI Off
A critical vulnerability was discovered in React Server Components (Next.js). Our Systems Remain Fully Protected. Learn More.
I have a page type which is called InfoPage and the code is like this for that
Now in the rightSideArea users can add blocks and one of the block type is this
Now what I am trying to do is when I doing search (unified search) I want to check if the page has any documents in that rightSideArea whose name contains "X".
I started following this article https://ericceric.com/2020/04/17/get-related-hits-on-attached-documents-for-pages-in-episerver-search-and-navigation/ to add a SearchAttachmentText but it doesn't seem to work.
I have installled this package
EPiServer.Find.Cms.AttachmentFilter
Then I added this in dependencyRessolver
c.For<IAttachmentHelper>().Use<DefaultAttachmentHelper>();
Then in my FindInitialization I did this
And then I created an extension function like this
But it doesn't help. When I create a new InfoPage it doesn't add this in index.