Try our conversational search powered by Generative AI!

Search Imported Pages

Vote:
 

I have imported most of my pages in my episerver cms 6 site with the "import data"-function. The content of the imported pages isn't searchable. If I in Edit Mode mark a page as "Mark page as changed" or changes anything else and save/publish the content becomes searchable. Is there any way to make the imported pages searchable directly?

 

#42672
Aug 30, 2010 14:51
Vote:
 

Not sure why the indexer wouldn't pick these up.  Here's some code to reindex everything:

ArrayList array = new ArrayList();
IList pages = new EPiServer.DataAccess.PageListDB().ListAll();
foreach (EPiServer.Core.PageReference page in pages)
     array.Add(page.ID);
 
IndexPageJob job = new IndexPageJob((int[])array.ToArray(typeof(int)));
job.Execute();
    

Put that in a Scheduled Job and run it.  (Alternately, I guess, you could just re-save all the pages programtically, but this would probably be less overhead.)

That's from Mari, over in this thread, which is probably worth reading too.

 

#42769
Aug 31, 2010 23:31
Vote:
 

Thanks Deane. Ill try that.

#42890
Sep 06, 2010 12:18
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.