Logo 
Search:

Sharepoint 2010 Forum

Ask Question   UnAnswered
Home » Forum » Sharepoint 2010       RSS Feeds

User profile custom properties keyword search problem

  Asked By: Helen    Date: Dec 16    Category: Sharepoint 2010    Views: 3112

Using SharePoint Server 2010 and the User Profile Service, we’re
setting some custom properties in addition to the default profile
properties. However, when we try to search for the custom properties
using a People Search the search results come back empty.

Situation

In our profiles, we’re adding a user’s County to their information so
that we can find staff based on which county office they are in.
Adding the custom property is easy enough, and it shows up fine on
their profile screen.

By default, SharePoint makes those properties be keyword links that do
a people search with the keyword of the link, like so:
http://hostname/Search/Pages/peopleresults.aspx?k="Iron".
Unfortunately, that search turns up no results, even when I click on
the existing property.

Details

When creating the profile property, I set it to be indexed. It is also
replicable.
In the Search Service Application I created a custom search Metadata
Property of County and added “People:County(Text)” and
“ows_taxID_County(Text)” to the mappings.

This certainly helped by adding County to the sidebar of refiners in a
search, but doesn’t make a blank people search find people when typing
in a county name.

Doing a specific named property search (County:”Iron”) does return
results so it’s definitely indexing the property. It’s just not making
that property available to general keyword searching.

Editing the peoplesearch.aspx page, modifying the search web part and
adding County to the Properties XML didn’t make any difference.

<Properties>
<Property Name="LastName" ManagedName="LastName"
ProfileURI="urn:schemas-microsoft-com:sharepoint:portal:profile:LastName"/>
<Property Name="FirstName" ManagedName="FirstName"
ProfileURI="urn:schemas-microsoft-com:sharepoint:portal:profile:FirstName"/>
<Property Name="JobTitle" ManagedName="JobTitle"
ProfileURI="urn:schemas-microsoft-com:sharepoint:portal:profile:SPS-JobTitle"/>
<Property Name="PersonKeywords" ManagedName="PersonKeywords"
ProfileURI="urn:schemas-microsoft-com:sharepoint:portal:profile:SPS-PersonKeywor\
ds">
<EffectiveProperty Name="Responsibility"
ManagedName="Responsibility"
ProfileURI="urn:schemas-microsoft-com:sharepoint:portal:profile:SPS-Responsibili\
ty"/>
<EffectiveProperty Name="Skills" ManagedName="Skills"
ProfileURI="urn:schemas-microsoft-com:sharepoint:portal:profile:SPS-Skills"/>
<EffectiveProperty Name="Interests" ManagedName="Interests"
ProfileURI="urn:schemas-microsoft-com:sharepoint:portal:profile:SPS-Interests"/>
<EffectiveProperty Name="County" ManagedName="County"
ProfileURI="urn:schemas-microsoft-com:sharepoint:portal:profile:County"/>
</Property>
</Properties>

I’m stumped. Any thoughts?

Share: 

 

2 Answers Found

 
Answer #1    Answered By: Uttam Vanjare     Answered On: Dec 16

I found documentation on how to fix this in 2007, but 2010 has changed
the menus and the Selected Columns setting appears to be missing.

 
Answer #2    Answered By: Jack Carroll     Answered On: Dec 16

Found the 2010 equivalent approach
msdn.microsoft.com/en-us/library/ms560074.aspx

But even when I add the custom column name to the search results xml,
I'm still not seeing the search term getting results.

 
Didn't find what you were looking for? Find more on User profile custom properties keyword search problem Or get search suggestion and latest updates.




Tagged: