Per Nergård
May 15, 2014
(3 votes)

EPiServer Search indexing scheduled job

From time to time we get reports from customer where they don’t get the search hits they expect.

After making sure there is no human mistake accidently filtering out the page from the search hits  the conclusion is that the index has been corrupt in some way.

It’s easy enough to re-index the site by going to this url http://yoursite/EPiServer/CMS/Admin/IndexContent.aspx.

But even if its easy enough to do a re-index, having to do so from time to time makes the customer uncertain if the search is working correctly.

So I decided to create a scheduled job which performs the re-index.

The IndexContent.aspx saves the date of the latest performed re-index in the DDS always overwriting the same item. I implemented the scheduled job to also save the date but add another item to the DDS. To always be able to see the latest re-index date (independent if run from scheduled job or IndexContent.aspx I created a plugin that lists the 20 last re-index dates.

You can find the code over at GitHub.

May 15, 2014


valdis Jun 6, 2014 09:00 AM

Handy! I would just stick with scheduled job log capability to store all run cycle dates, results and any other related info :)

Please login to comment.
Latest blogs
Plug-in manager is back in CMS 12

Plug-in manager is back in the UI, what is it and how can i use it?

Luc Gosso (MVP) | Oct 6, 2022 | Syndicated blog

Display Child Pages in Content Delivery API Response

The below example will implement an instance of IContentConverterProvider to customise the serialisation of PageData and output child pages in the...

Minesh Shah (Netcel) | Oct 4, 2022

Bring the Report Center back in Optimizely CMS 12

The Report Center has been a part of Optimizely CMS since its first debut in version 5R2 in 2008, but in CMS 12, it's removed! Don't despair! Make...

Tomas Hensrud Gulla | Oct 4, 2022 | Syndicated blog

Customizing Property Lists in Optimizely CMS

Generic property lists is a cool editorial feature that has gained a lot of popularity - in spite of still being unsupported (officially). But if y...

Allan Thraen | Oct 2, 2022 | Syndicated blog