Question

This question was previously asked with the qualifier of Sitecore 6.x.

Since Sitecore 7.0 is out and widely used my team and I are in need of a new answer and debate to this question.

What would be the best way I can rebuild a custom index in Sitecore 7.0 Content Delivery?

Edit: (More Info) I do not have access to the code being developed. I run about 320 different websites across multiple Sitecore Instances most sites have their own Lucene Indexes.

Was it helpful?

Solution

Not sure if this is what you are looking for but we wrote a class that gets called by task agent. The class itself simply looks for the specified index and rebuilds it.

Sitecore.Search.SearchManager.GetIndex("custom_index").Rebuild()

You could also call it in publishing pipeline if you like to rebuild your custom indexes on publish event.

OTHER TIPS

We went with integrating Remote Rebuild Strategy in our Content Delivery servers. It is working like a charm.

Here are two good sources on that Strategy:

  1. http://sdn.sitecore.net/upload/sitecore7/70/sitecore_search_and_indexing_guide_sc70-a4.pdf
  2. http://www.sitecore.net/Community/Technical-Blogs/John-West-Sitecore-Blog/Posts/2013/04/Sitecore-7-Index-Update-Strategies.aspx
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top