- Make sure that the “Managed Metadata Service” is provisioned and running before you perform this procedure.
- Once the initial full synchronization is completed we should check that the custom property is populated to the users profiles as expected.
- Open the SharePoint central administration web site.
- Create a new content source for your user profiles
Select your configured search application
Click Manage
Fill in the required fields and mark how we write the URL of the SharePoint site to the my sites host URL with a special sps3 protocol.
Create schedules as required
Select full crawl check box (you can do that later if you want)
Click OK
- Keep refreshing the content sources page until the crawl has finished.
- Create a new metadata property pointing to your custom user profile property.
Click “Metadata Properties”
Click “Add Mapping”
Select “People:EmployeeID” (This is the crawled property and you will never find it until you perform the initial full crawl of the users profiles) and then OK
- Once this is done and this is a very important step RUN ANOTHER INCREMENTAL CRAWL.
- Open
your search center that you want the user to use the new metadata
property and now we will customize this page to add the new managed
property.
Click the “People” link.
Click on site actions and then edit page.
Open the search box web part properties
Now in this window add a new line like this:
<Property Name="EmployeeID" ManagedName="EmployeeID" ProfileURI="urn:schemas-microsoft-com:sharepoint:portal:profile:EmployeeID"/>
Click ok twice
Now when you click on search options you see this view
And if you enter any employee ID in the designated section you get results as following
Please note the query format.
Please note one thing if you want to localize the name of the property you will have to change the field name in this line to whatever you want.
<Property Name="EmployeeID" ManagedName="EmployeeID" ProfileURI="urn:schemas-microsoft-com:sharepoint:portal:profile:EmployeeID"/>
No comments:
Post a Comment