Join us this Friday for AI in Action at the Virtual Happy Hour! This free virtual event is open to all—enroll now on Academy and don’t miss out.
Join us this Friday for AI in Action at the Virtual Happy Hour! This free virtual event is open to all—enroll now on Academy and don’t miss out.
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?