Posts

Showing posts with the label search index

How to reset a corrupt search index in SharePoint 2013 in case the reset index is not working

Image
On a recent SharePoint 2013 deployment, I faced a strange issue, wherein the search index got corrupted and I was not able to reset the index. Although, I was able to get to the reset index screen and the reset index button was clickable, but each time it went into an infinite loop on clicking the reset index button, and the index was not reset. After much banging our heads and googling around, I found a small piece of information that really helped and did the trick. Below is a step-wise approach to resolve such an issue. Step-1 Stop the Windows SharePoint Services Timer service Step-2 Navigate to the cache folder in the following location: System Drive:\ProgramData\Microsoft\SharePoint\Config Step-3 Locate the folder that has the file “Cache.ini”. There may be multiple GUID folders with cache.ini file Step-4 Back up these folders with the Cache.ini file Step-5 Delete all the XML configuration files in the GUID folder Note: When you delete the xml ...

SharePoint Search Index/Partition Degraded

Image
Today I reconfigured my Search Service Application following this post. After restarting the SharePoint Search Host Controller in services.msc, I observed that the search is not working in SharePoint. Lots of logs, not much sense: Get-SPEnterpriseSearchStatus tells me that the Index Component and the Partition is degraded: PS C:\Windows\system32> $ssa = Get-SPEnterpriseSearchServiceApplication PS C:\Windows\system32> Get-SPEnterpriseSearchStatus -Text  -SearchApplication $ssa Name      : IndexComponent1 State     : Degraded State     : List of degraded cells: Cell:IndexComponent1-SPeb9d40f9a806I.0.0; Partition : 0 Host      : SPSRV Name      : Cell:IndexComponent1-SPeb9d40f9a806I.0.0 State     : Degraded State     : (Secondary index cell) Primary   : False Partition : 0 Name  : Partit...

Partial Index Reset of a single content source

Partial Index Reset of a single content source This script will remove and re-add your content source's start addresses. SharePoint will more or less rebuild the index for these sources, when the next full crawl is started. $sourceName = "Local SharePoint sites" $SSA = Get-SPEnterpriseSearchServiceApplication $source = Get-SPEnterpriseSearchCrawlContentSource -Identity $sourceName -SearchApplication $SSA $startaddresses = $source.StartAddresses | ForEach-Object { $_.OriginalString } $source.StartAddresses.Clear() ForEach ($address in $startaddresses ){ $source.StartAddresses.Add($address) }