Five New Optimizely Certifications are Here! Validate your expertise and advance your career with our latest certification exams. Click here to find out more
AI OnAI Off
Five New Optimizely Certifications are Here! Validate your expertise and advance your career with our latest certification exams. Click here to find out more
I found that I needed to add property SearchText in Basepage to override default indexing.
[Ignore]
public string SearchText
{
get
{
// custom code
}
}
Hi.
We use some blocks inside xhtml fields. By example some layout blocks like “Luft 48px”, that should not be in the search index. Inspired by world.optimizely.com/blogs/Per-Magne-Skuseth/Dates/2016/1/episerver-find-index-blocks-in-xhtmlstring/ it was easy to remove the blocks in CMS 11. But after upgrade to cms 12 this is not working any more. The AsViewedByAnonymous$$string is updated, but the SearchText$$string is not updated.
So how to remove blocks in xhtml fields from SearchIndex in cms 12?