Thursday, 3 April 2014

Result source in SharePoint 2013

Result source in SharePoint 2013
Create list in Authoring site
Create a Site column: MyContentType
Data Type as managed meta data.
Add site column in your list.
Create a term store word in any group.
Ex: MyList
Add default value for:MyContentType
The value is term set value which you have created.
Now add items to list
Now Create a result source: Ex: MyListRS
While Creating term store, in the query use below string to get only your list data in the Content Search web part
Ex: {searchTerms} SPSiteURL:https://..Authoring site.../XXX/MySite (owstaxIdMyContentType:MyList)
owstaxIdMyContentType is Managed property for MyContentType