Nesting Facets

Apr 10, 2009 at 9:11 PM
Edited Apr 10, 2009 at 9:11 PM
Has anyone got an XSLT example of nesting facets?
Coordinator
Apr 11, 2009 at 3:20 AM
Here is a snippet that will get you started

<Column Name="BDCBusinessType" DisplayName="Business Type" OrderBy="Name" TotalResults="5" />
  <Column Name="BDCProductLine" DisplayName="Product Line" OrderBy="Hits" TotalResults="5" />
  <Column Name="BDCCity" DisplayName="City" OrderBy="Name" TotalResults="5" ParentName="BDCState" />
  <Column Name="BDCState" DisplayName="State" OrderBy="Name" TotalResults="5" ParentName="BDCCountry" >
   <Mappings>
    <Mapping Match="Alberta" ParentName="BDCCountry" ParentValue="Canada"/>
    <Mapping Match="British Columbia"  ParentName="BDCCountry" ParentValue="Canada" />
    <Mapping Match="Manitoba"  ParentName="BDCCountry" ParentValue="Canada" />
    <Mapping Match="Ontario"  ParentName="BDCCountry" ParentValue="Canada"/>
    <Mapping Match="Quebec"   ParentName="BDCCountry" ParentValue="Canada"/>
   </Mappings>
  </Column>
<Column Name="BDCCountry" DisplayName="Country" OrderBy="Name" TotalResults="5" />

  
Jan 12, 2010 at 6:48 AM

In this example what are BDCCity, BDCState, BDCCountry? What is the SharePoint relationship between these three?

 

<Column Name="BDCBusinessType" DisplayName="Business Type" OrderBy="Name" TotalResults="5" />
  <Column Name="BDCProductLine" DisplayName="Product Line" OrderBy="Hits" TotalResults="5" />
  <Column Name="BDCCity" DisplayName="City" OrderBy="Name" TotalResults="5" ParentName="BDCState" />
  <Column Name="BDCState" DisplayName="State" OrderBy="Name" TotalResults="5" ParentName="BDCCountry" >
   <Mappings>
    <Mapping Match="Alberta" ParentName="BDCCountry" ParentValue="Canada"/>
    <Mapping Match="British Columbia"  ParentName="BDCCountry" ParentValue="Canada" />
    <Mapping Match="Manitoba"  ParentName="BDCCountry" ParentValue="Canada" />
    <Mapping Match="Ontario"  ParentName="BDCCountry" ParentValue="Canada"/>
    <Mapping Match="Quebec"   ParentName="BDCCountry" ParentValue="Canada"/>
   </Mappings>
  </Column>

 

Coordinator
Jan 12, 2010 at 1:23 PM

There is a QuickStart for Faceted Search and BDC, might look up there. http://facetedsearch.codeplex.com/Release/ProjectReleases.aspx?ReleaseId=7387#DownloadId=30326

The BDC columns are extracted from OOB AdevntureWorks (SQL)

Leonid