WorkCity column from custom Contacts list not appearing in People Search reuslts RRS feed

  • Question

  • Hi All,

    We have a custom Contacts list. A scope has been created for this list and People search core results web part in SP 2010 is used to display the search results.

    I'm able to show the "MobilePhone" column which has been added explicitly to the web part properties->xsl editor filed.

    But I'm not able to show the "WorkCity" column in a similar fashion.

    Please provide your inputs. The "ows_workcity" exists in the crawled properties.



    Monday, January 27, 2014 8:04 AM

All replies

  • If you've added this manually a full crawl will be needed.

    When you also say you can't show it in the same way, can you advise what you've tried and what exactly isn't working?

    Steven Andrews
    SharePoint Business Analyst: LiveNation Entertainment
    Blog: baron72.wordpress.com
    Twitter: Follow @backpackerd00d
    My Wiki Articles: CodePlex Corner Series
    Please remember to mark your question as "answered" if this solves (or helps) your problem.

    Monday, January 27, 2014 10:36 AM
  • Hi Andrew,

    I've modified the Display Properties section in the People search results web part properties.

    A column mobilephone was added in the fetched properties. And corresponding tags to display the workcity column has been updated in the xsl editor.

    <xsl:variable name="hasmph" select="string-length(mobilephone) &gt; 0"/>

    <xsl:if test="$hasmph">
            <li id="MobileField"><strong>Mobile Phone: </strong>
              <xsl:apply-templates select="hithighlightedproperties/mobilephone" />

    The above tags have been added in the xsl editor tab for the MobilePhone.

    Similarly "haswct" has been used for WorkCity variable and so on.

    In the fetched columns below tag has been added for the workcity.

    <Column Name="WorkCity" HitHighLight="true"/>

    Please let me know if you need more details.

    Monday, January 27, 2014 11:47 AM