The Latest Time Saving Tips for Your SharePoint Deployment

Corey Roth

Subscribe to Corey Roth: eMailAlertsEmail Alerts
Get Corey Roth: homepageHomepage mobileMobile rssRSS facebookFacebook twitterTwitter linkedinLinkedIn

Top Stories by Corey Roth

The developer dashboard is a great new feature that developers can use to aid them in tuning performance on a page.  This new functionality adds information to the bottom of any page in SharePoint that displays performance information and what SQL queries were executed to display the page.  To my knowledge, there is currently no way in the UI to turn this on, so you can do this with a quick x64 console application.  This is soon to become a quite popular code snippet I am sure. SPPerformanceMonitor performanceMonitor = SPFarm.Local.PerformanceMonitor; performanceMonitor.DeveloperDashboardLevel = SPPerformanceMonitoringLevel.On; All you need is those two lines of code.  When you are done with it, simply set the monitoring level to Off. ... (more)

Copy Source as HTML in Visual Studio 2010

SharePoint Archiving Journal I was working on my first SharePoint 2010 post today since I actually installed some bits and quickly discovered that I did not have Copy Source As Html working with Visual Studio 2010 Beta 2.  If you’re a blogger like me, you will find that you are quite addicted to this useful tool as it makes pasting good looking code segments quite easy.  Unfortunately, they haven’t released an installer that works with Visual Studio 2010 yet, so I decided to see if I could figure out how to get it to work.  Now, I’m not expert on Visual Studio Addins, so it took... (more)

Displaying Social Ratings in Search Results

I absolutely love the new social ratings site columns that we can easily add to existing SharePoint 2010 document libraries.  It gives such an easy way for end users to rate documents in an interface they are probably already familiar with because of iTunes. I got to thinking.  Seeing these social ratings in my search results sure would be useful.  It would also be nice to be able to query them.  How do we do that?  We use managed properties of course.  I did some digging and found out that there isn’t a managed property already out there for this so we need to create one.  We ... (more)

How to: Querying Enterprise Search by Content Type

A colleague asked me today how he could formulate a search query by content type today.  I figured it was as simple as doing  a keyword query by content source, but wasn’t sure so I decided to go check.  I took a look and there is a ContentType managed property so I decided to use it as in the following example. ContentType:”Company Document” In my example, I wanted to return all documents that were of type Company Document.  This in fact worked exactly as expected as you can see in my screenshot below. This means you can of course display the content type in your search result... (more)

Excluding Folders from Search Results

I see this topic come up quite a bit.  You have a set of search results, and the user just wants to see the documents, not the folder that contains the documents.  Consider the following example, when I query for accounting documents below. As you can see in the results above, the first item returned is the folder named Accounting which contains the documents listed after it.  Many times, people do not want this showing up in the results, so we need to come up with a way to remove it.  The easiest way of course is to use the IsDocument keyword and pass it a value of 1.  This wi... (more)