AI OnAI Off
For future reference: http://world.episerver.com/blogs/Per-Magne-Skuseth/Dates/2016/1/episerver-find-index-blocks-in-xhtmlstring/
Thank you and thanks to Per Magne:)
It works great except in one scenario.
Step 1.
Editor creates a page in EPi, d&d shared block to XhtmlString field, and clicks the page publish button.
Expected result: Block content is indexed
Actual result: Block content is indexed
Step 2.
Editor makes some changes in shared block from step 1 and clicks the block publish button
Expected result: All pages containing that shared blocks should be re-indexed
Actual result: Search index contains old data
I guess we can attach to IContentEvents.PublishedContent event and re-indexed all affected pages using ContentSoftLinkRepository.
Hi,
We have shared blocks that can be d&d into ContentArea and XhtmlString fields.
[IndexInContentAreas] attribute works fine for content areas but is there something similar for XhtmlString fields?
EPiServer 9.2.1
EPiServer.Find 10.1.0.3493
Thanks!