List of common SharePoint 2013 Result Source IDs

Posted Friday, January 4, 2013 10:08 AM by CoreyRoth

Although the new Result Source feature in SharePoint 2013 is really cool, writing queries against them is not.  With scopes you could specify them by name (i.e.: All Sites or People).  However with result sources, you must specify the id not the name.  This cane make it tricky to develop custom coded solutions.  Luckily, it turns out that the IDs of the built-in result sources are all the same (at least they appear to be) with the exception of the Conversations result source.  In comparing an on-premises installation of SharePoint 2013 with a SharePoint Online Preview tenant, here is the list I came up with.  Hopefully, it will save you some time when you need to write a query.

Result Source ID
Documents e7ec8cee-ded8-43c9-beb5-436b54b31e84
Items matching a content type 5dc9f503-801e-4ced-8a2c-5d1237132419
Items matching a tag e1327b9c-2b8c-4b23-99c9-3730cb29c3f7
Items related to current user 48fec42e-4a92-48ce-8363-c2703a40e67d
Items with same keyword as this item 5c069288-1d17-454a-8ac6-9c642a065f48
Local People Results b09a7990-05ea-4af9-81ef-edfab16c4e31
Local Reports And Data Results 203fba36-2763-4060-9931-911ac8c0583b
Local SharePoint Results 8413cd39-2156-4e00-b54d-11efd9abdb89
Local Video Results 78b793ce-7956-4669-aa3b-451fc5defebf
Pages 5e34578e-4d08-4edc-8bf3-002acf3cdbcc
Pictures 38403c8c-3975-41a8-826e-717f2d41568a
Popular 97c71db1-58ce-4891-8b64-585bc2326c12
Recently changed items ba63bbae-fa9c-42c0-b027-9a878f16557c
Recommended Items ec675252-14fa-4fbe-84dd-8d098ed74181
Wiki 9479bf85-e257-4318-b5a8-81a180f5faa1

Of course this doesn’t help you much for your own custom result sources, but at least you should be able to work with this list for anything built-in.  This is especially useful if you want to write queries to do people search or get popular items.

Comments

# SharePoint Kaffeetasse 283

Monday, January 7, 2013 3:54 AM by Michael Greth [SharePoint MVP]

Anpassung SharePoint 2013 Colour  Calender SharePoint 2010 Colour Calendar post SP1 update CAML

# re: List of common SharePoint 2013 Result Source IDs

Wednesday, May 22, 2013 8:48 AM by Kourosh

Hi, Thank you for this useful post. I have a tested the document result source (e7ec8cee-ded8-43c9-beb5-436b54b31e84) by using this query

intranet.test.pe.mogul.se/.../query'blah'&sourceid='e7ec8cee-ded8-43c9-beb5-436b54b31e84'

however it returned all documents, it doesn't matter what you write for querytext it returns all documents. why?

how do I return only documents which contains (title, name or text) a querytext? thanks

# re: List of common SharePoint 2013 Result Source IDs

Thursday, June 20, 2013 6:11 PM by John

@ Kourosh

= must be :

so

sourceid:'e7ec8cee-ded8-43c9-beb5-436b54b31e84'

# re: List of common SharePoint 2013 Result Source IDs

Friday, June 21, 2013 8:59 AM by CoreyRoth

@John that is correct.  You must use :.

# re: List of common SharePoint 2013 Result Source IDs

Wednesday, December 3, 2014 3:49 AM by Srinath

John : Thank you for the help!!!

# Sharepoint: Search Query to get People Directory using Rest API | xencode

Pingback from  Sharepoint: Search Query to get People Directory using Rest API | xencode

# re: List of common SharePoint 2013 Result Source IDs

Friday, October 9, 2015 11:18 AM by Saav

Hi.  Thanks for the post.  I am successfully using "Local People Results" source ID on one of my environments.  I'm trying to use the same code on another identical environment without success, no results are returned.  Have I forgot to set something up?  Thanks.

Leave a Comment

(required) 
(required) 
(optional)
(required)