We have migrated data into Sitefinity 3.7 from a legacy CMS system - The pages, navigation and content all work perfectly.
However, our search index doesnt seem to index the migrated content.
If we edit a page, make a small modification to a generic content control, then save and publish, the content is now indexed and searchable!
I compared the HTML content that was migrated compared to that after a Sitfinity save, and they are identical.
I wrote a piece of code that would simulate the steps of editing a page, modifying the content, saving then publishing. See snippet below:-
ICmsPage currentPage = (ICmsPage)manager.GetPage(page.ID, true);
IStagedPage staged = currentPage.Staged.CheckOut();
//enumerate all controls on page
foreach (ICmsWebControl c in staged.Controls)
//determine if control is generic content
if (c.ControlType == typeof(Telerik.Cms.Engine.WebControls.GenericContent))
var gcControl = c.LoadControl() as GenericContent;
gcControl.Content = gcControl.Content + " ";
This code seems to work - it updates all generic content controls on all pages. I can navigate to any page and confirm that the additional space has been added to the content.
But still the content is not included in search!!! - I have tried rebuilding the index, the result is the same.