Tuesday 17 June 2014

Sharepoint result source query filter using query string

First find out the Manages Property of the Site Column which you want to filter data.
My Site Column is: EmpGroup
How to find Managed Property
Go to SharePoint Site-->Site Settings-->Search Schema -->
Enter your Column name : EmpGroup
Click on green arrow.
Managed Property is: owstaxIdEmpGroup

General query:
path:"<Source site>" <Managed Property of the Site Column>:{QueryString.<Query String Name>}
Now I will write Result Source query:
path:"https://SP/teams/MyHR" owstaxIdEmpGroup:{QueryString.group}

Now My URL is:
https://SP/teams/MyHR/welcome/career?group=IT