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.

link|improve this question

feedback

1 Answer

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.

link|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. – JonnyP Apr 12 '11 at 15:52
@JonnyP I will add a link soon. I thought about writing a blog post about it. – codegeek Apr 12 '11 at 16:26
@Shoban - Sweet, I look forward to it! – JonnyP 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/… – codegeek Nov 4 '11 at 10:49
show 4 more comments
feedback

Your Answer

 
or
required, but never shown

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