Meir, are you trying to return results in groups – e.g. Pages and then 
documents?

If so, I would be very interested to see a result as we are trying to do the 
same thing.

Does anyone know if Pages can be separated from documents or given higher 
priority so that they appear first? Can they be set as a scope??

As you have discovered, the XSL reveals very little.

Regards,

Paul

From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Meir Dahan
Sent: Wednesday, 17 September 2008 5:16 PM
To: [email protected]
Subject: Re: [OzMOSS] How to group the search results by scope in 
CoreSearchResults ?

I already try this and of course the scope column does not exist in the results 
XML.
Is there a work around to solve this problem without using c# code to execute 
the search for each scope separately?
On Wed, Sep 17, 2008 at 2:22 AM, Darren Neimke <[EMAIL PROTECTED]<mailto:[EMAIL 
PROTECTED]>> wrote:

I'm not sure that the 'out of the box' Search Result data returns the scope in 
its result list?  If you change the XSLT for the Search Result Web Part to the 
following (Make sure that you save the old XSLT before you make this change so 
that you can change it back afterwards ☺):



<?xml version="1.0" encoding="UTF-8"?>

<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>



And then run a Search, you should see what XML you have to deal with.  If the 
scope field is in there, then you are in business.





Kind Regards,

Darren Neimke
[EMAIL PROTECTED]<mailto:[EMAIL PROTECTED]>

blog: http://neimke.spaces.live.com<http://showusyourcode.spaces.live.com/>
twitter: http://twitter.com/digory
mob: 0439 855 046



From: [EMAIL PROTECTED]<mailto:[EMAIL PROTECTED]> [mailto:[EMAIL 
PROTECTED]<mailto:[EMAIL PROTECTED]>] On Behalf Of Meir Dahan
Sent: Tuesday, 16 September 2008 9:27 PM
To: [email protected]<mailto:[email protected]>
Subject: [OzMOSS] How to group the search results by scope in CoreSearchResults 
?



Using xsl.

--
Meir Dahan
Mobile: +972-52-8316814
Email: [EMAIL PROTECTED]<mailto:[EMAIL PROTECTED]>

------------------------------------------------------------------- OzMOSS.com 
- to unsubscribe from this list, send a message back to the list with 
'unsubscribe' as the subject.
Powered by mailenable.com<http://mailenable.com/>
------------------------------------------------------------------- OzMOSS.com 
- to unsubscribe from this list, send a message back to the list with 
'unsubscribe' as the subject.
Powered by mailenable.com<http://mailenable.com/>



--
Meir Dahan
Mobile: +972-52-8316814
Email: [EMAIL PROTECTED]<mailto:[EMAIL PROTECTED]>
------------------------------------------------------------------- OzMOSS.com 
- to unsubscribe from this list, send a message back to the list with 
'unsubscribe' as the subject.
Powered by mailenable.com
;3I'(��.�˛���m���ka��b���֦z����rKh����p��n�˛���m欶����r�����u��j)^���y�&

Reply via email to