Wednesday, April 17, 2013

Import/Export SharePoint Managed Metadata Termsets

I recently worked in a project where I had to use Managed Metadata Terms in several different SPFarms.

However, I had to guarantee that all TermSets/Terms had the same GUIDs associated across all environments.

To accomplish this, I used a great project from codeplex called spmmdnavigator.
(...)

Monday, April 15, 2013

SharePoint Search: IsDocument and contentclass properties

A common request, when you're setting up a Search Service Application, is trimming results to documents only. Usually, it's not added value to show lists, libraries, folders or sites as search result items (for refinement, it's a completely different story).

Throughout the years, I've seen people achieving this in multiple ways (most commonly excluding *.aspx using crawl rules), but the right way of doing it is creating a scope and using either the IsDocument or contentclass properties.
(...)

Saturday, April 13, 2013

How to avoid the fatidic UnauthorizedAccessException (0×80070005)

Recently I came across a series of issues when a client I had worked with changed their security matrix.

I had a webpart that applied a CAML query on a list to retrieve data and then present it. The problem I was having, when the customer changed their security matrix, was that some users no longer had permissions to retrieve the list where the data was being stored.
(...)

Friday, April 12, 2013

How to disable Search to index content inside documents

Have you ever had a requirement from a client to customize SharePoint Search, to disallow users from querying for any content inside documents?
I had this request recently, and it was a while until I found solution for it..

To accomplish this, I had to remove some internal Crawled properties from the Search Service Application.
(...)

Thursday, April 4, 2013

Restore site or list from backup without attaching database

A great improvement to Restore/Backups was made to SharePoint 2010. In MOSS2007 the restore/backup functionality was restricted to Farm, Web Applications and Content Databases.

In the 2010 version, using just the OOTB options, we can be as granular as choosing an individual list. This greatly improves the flexibility of this functionality. Not surprisingly, the feature is called Granular Backup.
(...)