Skip to main content

MOSS Search. Error The Content index is corrupt. Unable to connect to the Search Service

One day you decide you feel like searching your SharePoint 2007 site for some content and you come across the following errors:

On the site page:

The search request was unable to connect to the Search Service. 

In the event log:

Event Type: Error Event Source: Office Server Search Event Category: Content index server  Event ID: 4127 Date: 08/01/2009 Time: 20:41:13 User: N/A Computer: SERVER01 Description: Content index on Portal_Content could not be initialized. Error The content index is corrupt.   0xc0041800.Component: 1a42c22a-da49-4651-80ab-99f19176ac8a For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.

----

Event Type: Warning Event Source: Office Server Search Event Category: Search service  Event ID: 10039 Date: 08/01/2009 Time: 20:43:42 User: N/A Computer: SERVER01 Description: Retry of query machine ‘SERVER01′ has failed with error: The object is not initialzed.   0×8004180b.  It will be retried again in 900 seconds. Component: 1a42c22a-da49-4651-80ab-99f19176ac8a For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.

To Resolve this issue you need to Reset all crawled content. To do this perform the following steps:

  1. Open SharePoint Central Administration.
  2. On the top nav bar, click Application Management.
  3. On the Application Management page, click Create or configure this farm’s shared services.
  4. On the Manage this Farms Shared Services page, click the SSP whoes administration page you want to open.
  5. On the Shared Services Administration Home page, click Search settings in the Search section.
  6. On the Configure Search Settings page, click Reset all crawled content in the Crawl Settings section.
  7. By default, the Deactivate search alerts during reset check box is selected on the Reset Crawled Content page. This option prevents users who have search alerts configured from being sent unnecessary e-mail messages when the crawled content is reset. Click to clear this check box if you do not want to disable alerts during the reset operation.
  8. Click Reset Now.
  9. In the message box, click OK to confirm that you want to reset the search content index.
  10. Go back to the Shared Services Administration Home page, click Search settings in the Search section.
  11. Click Content sources and crawl schedules.
  12. Drop the menu down for the Source you want to crawl, click Start Full Crawl.

Once the crawl completes you should be all good again.

Happy Searching.

Comments

  1. Hi Senthil, You are a champ, dude. I followed the steps which you have mentioned in your blog and it helped me resolve my search. Keep it up mate!!

    Cheers,
    Dilip

    ReplyDelete
  2. Thank you for the blog. Saved me a lot of troubleshooting and searching through menus. Our search service went crazy overnight and I had to wipe the folder out and restart the crawl.

    ReplyDelete
  3. This comment has been removed by the author.

    ReplyDelete
  4. Thanks Senthil. This is good solution but in my case we are getting Index Corruption error daily in Prod Env.

    Do you help us to understand why this is happening daily.

    ReplyDelete

Post a Comment

Popular posts from this blog

How to get SPUser or SPGroup from Person or Group field

You have person or group field in SharePoint list and you want to programmatically get the user or person. The below code to gets SPUser from User or Group field in the list when multiple choice and Groups are not allowed in the field: //get SPUser SPFieldUser userField = (SPFieldUser)item.Fields.GetField("Users"); SPFieldUserValue userFieldValue = (SPFieldUserValue)userField.GetFieldValue(item["Users"].ToString()); SPUser user = userFieldValue.User; This part of code would help you to get SPUser when multiple choice is allowed and groups are not allowed: //Multiple choices are allowed SPFieldUser userField = (SPFieldUser)item.Fields.GetField("Users"); SPFieldUserValueCollection userFieldValueCollection = (SPFieldUserValueCollection)userField.GetFieldValue(item["Users"].ToString()); foreach (SPFieldUserValue userFieldValue in userFieldValueCollection) {     Console.WriteLine("     " + userFieldValue.User.LoginName); } And when group...

SharePoint publishing page scheduling

In SharePoint 2010 publishing enabled team site collection is not showing schedule button in publish ribbon. Solution: Here is how to enable it  though the UI: Locate the SharePoint Server Web site on which you want to enable content approval and item scheduling. Click  Site Actions , click  Site Settings , and then click  Modify Pages Library Settings . Under  General Settings , click  Versioning Settings . Click  Yes  next to  Content Approval , and then click  OK . Click  Manage item scheduling .   Click to enable the  Enable scheduling of items in this list  check box, and then click  OK .

Changing Content Type Hub URL

Change the Hub URL through powershell by using: Set-SPMetadataServiceApplication -Identity " " -HubURI " " For Ex: Set-SPMetadataServiceApplication -Identity "Managed Metadata Service" -HubURI "http://contenttype.Domain.Com" When you try to do this you get this rather scary message: This is SharePoint telling you that this is a major thing so be careful! Essentially all your content types that you have published out will be removed if they can, and you have to republish all of your content types out again which can cause some issue.