Skip to main content

Patrick Tisseghem's Blog [MVP SharePoint]

Go Search
U2U Blog Center
U2U website
  

The Happy SharePoint Traveller

U2U Blog Center > Patrick Tisseghem's Blog [MVP SharePoint] > Posts > People ranked by social distance are DummyResults
People ranked by social distance are DummyResults

It's great to write a book. I am these days fully immersed writing the chapter explaining the XSL that is used to render the search results in the different Search Web Parts such as the Search Core Results Web Part and the People Search Core Results Web Part. Sometimes you can't prevent a good laugh while, and that's quite sad, you are all alone in your hotel room cranking out words in Word 2007.

Take this one. In the Search Center, execute a people search and make sure they are sorted by social distance. Now replace the XSL with the following XSL to view the raw XML that will be transformed:

<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
  <xsl:output method="xml" version="1.0" encoding="UTF-8" indent="yes"/>
    <xsl:template match="/">
      <xmp><xsl:copy-of select="*"/></xmp>
    </xsl:template>
</xsl:stylesheet>

Ok. What is the outcome? Well, this one:

<All_Results>
    <DummyResult>
      <Colleague />
    </DummyResult>
    <Result>
      <id>9</id>
      <accountname>LITWAREINC\PeterM</accountname>
      <userprofile_guid>59C5FEB9-26F0-48AA-95E3-E3CBB826E849</userprofile_guid>
      <preferredname>Peter Mullen</preferredname>
      <jobtitle>Product Compete Manager</jobtitle>
      <department></department>
      <workphone>(425) 555-0144</workphone>
      <officenumber>S1044</officenumber>
      <aboutme></aboutme>
      <pictureurl>http://moss:32901/personal/peterm/Shared Pictures/Profile 
Pictures/PeterM.jpg</pictureurl>
      <workemail>PeterM@litwareinc.com</workemail>
      <website></website>
      <url>http://moss:32901/Person.aspx?guid=59C5FEB9-26F0-48AA-95E3-E3CBB826E849</url>
<urlEncoded>http%3A%2F%2Fmoss%3A32901%2FPerson%2Easpx%3Fguid%3D59C5FEB9%2D26F0%2D48AA%2D95E3%2DE3CBB826E849</urlEncoded>
      <hithighlightedsummary>I assist our Product, Sales and <c0>Marketing</c0> teams by 
providing actionable competitive insights.</hithighlightedsummary>
      <hithighlightedproperties>
        <HHTitle />
        <HHUrl>http://moss:32901/Person.aspx?guid=59C5FEB9-26F0-48AA-95E3-
3CBB826E849</HHUrl>
      </hithighlightedproperties>
      <responsibility>Competitive Research</responsibility>
      <skills>Orion;Neptune</skills>
      <sipaddress></sipaddress>
      <imageurl imageurldescription="File with extension: 
spx">/_layouts/images/html16.gif</imageurl>
      <Colleague />
    </Result>
    <DummyResult>
      <ColleagueOfColleague />
    </DummyResult>
    <Result>
      <id>1</id>
      <accountname>LITWAREINC\DaveR</accountname>
      <userprofile_guid>DA38BB36-8F42-4E65-A534-ACD6A955F156</userprofile_guid>
      <preferredname>Dave Richards</preferredname>
      <!-- remaining part is left out for brevity-->
      <ColleagueOfColleague />
    </Result>
    <DummyResult>
      <Everyone />
    </DummyResult>
    <Result>
      <id>2</id>
      <accountname>LITWAREINC\SanjayJ</accountname>
      <userprofile_guid>19049F1B-B894-4671-BF8A-61C18FD9CABF</userprofile_guid>
      <preferredname>Sanjay Jacob</preferredname>
      <!-- remaining part is left out for brevity-->
      <EveryOne />
    </Result>
</All_Results>


Notice the DummyResult elements. Who came up with this element in the product team? smile_regular I want to meet this guy!

F03xx63

 

If you can't laugh with it, don't mind! Maybe it is a sign that I need a trip to Antartica when I start having fun all alone in my room with things like this. Yes, two more days and I am done for the rest of the year.

Wait... MS Press people, Mr. Barker... I'll still work, but no more teaching :).

Have fun folks!

 

Comments

need advice

hello,
i have 1 question about shared services + searching. should i configure on a single machine or on every machine running sharepoint? currently we have about 1000+ users.
at 5/12/2007 11:48

RE: need advice

You have typically one shared services provider per sharepoint server farm unless you for example need multiple index files.

Patrick
Patrick Tisseghem at 5/12/2007 13:20

Search question

Hello Patrick,

Sorry this question is not related to this post, I'm reading your book Inside MOSS 2007, where you explain how to customize search results using XSLT, that was very helpful! Thanks!
I'd like to group my results based on the list they come from, for instance if I make a search for Blackberry, I'd like to group the ones that come from my News list, the ones from the Calendar, Knowledge Base and so on... I can't find what would be the column name to add for the list name...
Thank you very much, you are a star!
at 5/12/2007 21:32

Cant find resource

Hey Patrick,

I hope its okay to write here...

I was just watching http://msdn2.microsoft.com/en-us/library/bb626127.aspx and wanted to download http://www.u2u.info/Blogs/Patrick/SampleCode/FullTextPeopleSearchWebPart.rar, but the file doesnt exist anymore

Is it possible you can make it available again?
at 6/12/2007 11:22

Hello

Usually there is only one shared services provider for one  sharepoint server. If you dont need multiple index files.
www.sukniemaja.pl - Suknie Slubne
at 1/02/2008 3:35
Captcha

Enter the code shown above: *

(Note: If you cannot read the numbers in the above
image, reload the page to generate a new one.)