Solved

SharePoint 2010 Crawl status Crawling Incremental and wont Stop

Posted on 2013-11-27
4
1,388 Views
Last Modified: 2013-12-02
Hi Guys,

We have a SharePoint 2010 environment with a SQL server back end on a separate server.

When I try and stop the current SharePoint Crawl in Central Administration : Search Service Application: Manage Content Sources it doesn't appear to do anything, we dont even receive an error code.

I have created a PS1 script that does the following;

Get-SPEnterpriseSearchCrawlContentSource -SearchApplication "Search Service Application" | ForEach-Object {
    if ($_.CrawlStatus -ne "Idle")
    {
        Write-Host "Stopping currently running crawl for content source $($_.Name)..."
        $_.StopCrawl()
       
        do { Start-Sleep -Seconds 1 }
        while ($_.CrawlStatus -ne "Idle")
    }
   
    Write-Host "Starting full crawl for content source $($_.Name)..."
    $_.StartFullCrawl()
}

When i run it, it reports a status of;
Stopping currently running crawl for content source Local SharePoint Sites... and doesnt do anything else after that.

Any Help and assistance on this would be greatly appreciated as its driving me mad not being able to stop the current crawl.

Cheers
0
Comment
Question by:YellowbusTeam
  • 2
  • 2
4 Comments
 
LVL 9

Accepted Solution

by:
skipper68 earned 500 total points
ID: 39681576
Try this instead:
Add-PSSnapin Microsoft.SharePoint.PowerShell 
$SSA = Get-SPEnterpriseSearchServiceApplication -Identity "Search Service Application" 
$ContentSource = $SSA | Get-SPEnterpriseSearchCrawlContentSource -Identity "Local Sharepoint sites" 
Write-Host $ContentSource.CrawlState 
if (($ContentSource.CrawlStatus  -eq "CrawlingIncremental" ) -or ($ContentSource.CrawlStatus  -eq "CrawlingFull" )) 
{ 
	#$ContentSource.PauseCrawl() 
	$ContentSource.StopCrawl()
	Write-Host "Stopping the current Crawl" 
} 
Write-host $ContentSource.CrawlState

Open in new window

0
 

Author Comment

by:YellowbusTeam
ID: 39685108
Thanks for that...
Now a further issue but guess I'm going to have to create a new ticket for this...

Just on the off chance though,

We are now getting 'Query Server not responding' when checking under the following location - Central Administration > Manage Service Applications > Shares Services-Search Service:Search Administration.

Have checked the permissions on the Share and that appears to all be ok, have reset the index from inside of the Central Admin, but still receiving 'Query server not responding'.

Any further help would be greatly appreciated??

Regards
0
 
LVL 9

Expert Comment

by:skipper68
ID: 39687311
I'll give your other question a shot:

When you checked permissions, did you make sure the WSS_WPG user has read & modify rights?  You can also give 'everyone' permission to make sure then dial it back.

After verifying permissions, stop and restart the query service:

$SearchApp = Get-SPEnterpriseSearchServiceApplication -identity "Search Service Application"

$SearchApp | Get-SPEnterpriseSearchQueryTopology | Get-SPEnterpriseSearchQueryComponent | Where-Object {$_.ServerName -eq 'SERVERNAME'}  | Restart-SPEnterpriseSearchQueryComponent


If it's any more in depth than this, I'd open up another question so more experts can participate.
0
 

Author Comment

by:YellowbusTeam
ID: 39689496
Cheers,

Will create a new question
0

Featured Post

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A question that is asked often, is how to generate sequential numbers in InfoPath Forms. The best way to achieve this is to use a SQL database, along with a stored procedure and a web service to connect Forms Services to the DB. The first thing t…
Work Over Net is a new and very powerful collaboration product. With its new easy interface it is becoming very competitive to other similar products like webex and office interactive. WON 2010 have the standard business tools needed for multi-offic…
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

815 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now