protected void btnRebuildSearchIndex_Click(object sender, EventArgs e) { IndexingQueue.DeleteAll(); IndexHelper.DeleteSearchIndex(siteSettings); IndexHelper.VerifySearchIndex(siteSettings); lblMessage.Text = Resource.SearchResultsBuildingIndexMessage; Thread.Sleep(5000); //wait 1 seconds SiteUtils.QueueIndexing(); }