Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

Is it possible to force a search crawler to crawl through the recycle bin(s) on a SharePoint 2010 system?

I'd like to allow my users to delete files/folders in document libraries but if someone accidentally removes a file that they shouldn't it would make everyone's life a lot easier if items in the recycle bin(s) could be included in normal search results.

share|improve this question
add comment

1 Answer 1

up vote 4 down vote accepted

Don't know if there is an OOTB solution for this. I couldn't find one. I was able to find something interesting though. you can search Recycle bin using PowerShell

example : (Get-SPSite "http://SERVERNAME:PORT/").RecycleBin | ?{$_.Title -match "DeletedFile"}

Source

Now you can use c# and PowerShell together and write a custom search solution.

share|improve this answer
    
Because I'm very, very new to developing for SharePoint can you point me to any references that would help me build a webpart that my users could interact with to use this functionality? I've got VS2010 and will soon be able to install the SP Dev Environment on my workstation. –  newuser Apr 12 '11 at 15:52
    
@JonnyP I will add a link soon. I thought about writing a blog post about it. –  Shoban Apr 12 '11 at 16:26
    
@Shoban - Sweet, I look forward to it! –  newuser Apr 12 '11 at 16:28
1  
This is nice, although it looks like it searches the site collection recycle bin only, and not the bins of each site? –  Alex Angas Apr 15 '11 at 3:31
1  
@jonnyP ... Apologies for the very late reply. Finally managed to write a blog post and was able to find a better solution in c# too. Check this post : allaboutmoss.com/2011/11/04/… –  Shoban Nov 4 '11 at 10:49
show 4 more comments

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.