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
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 will give you results like the ones
As you can see, this works great, but you don’t exactly want to have to
explain to the user how to type in IsDocument:1 into the search box.
However, it is quite easy to include this if you are building your own
advanced search control. One way to... (more)
SharePoint Archiving Journal
When I get an error, I like to blog about it. Especially when the error
gives you no useful information whatsoever. Now, you can get the above
error in a variety of ways, but the one I am going to discuss today is when
using SPQuery. I inherited some code that had some CAML queries in it and I
could not figure out what the cause was at first. When I called
SPList.GetItems(SPQuery), I would receive something like the following.
Microsoft.SharePoint.SPException was unhandled by user code
Message="Cannot complete this action.\n\nPlease try again."
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)
At my Search talk at SPC11, I demoed how to build a Silverlight application
that could query search in SharePoint Online. I also built a separate
application that could query people search, but I haven’t posted on it yet
until today. To query people search, we have to know a few things about how
SharePoint operates. It all starts with understanding the scopes
involved. If you take a look at your Search Scopes link in your site
collection settings, you’ll see a similar list to the one below.
What’s funny here is that SPO actually returns item counts for the entire
I am excited to say that I’ll be speaking at both TechEd North America and
TechEd Europe. This is my first time to even attend a TechEd so I am
looking forward to see what is in store. Both events are sure to be
exciting but I am particularly excited to be going to Amsterdam for TechEd
Europe since I haven’t been in 10+ years. If you’re at either event, be
sure and check out my session on Making the most of Search with SharePoint
Online. There you will learn some great tricks on how to get more out of
your search experience in the cloud. Links to my sessions are below.