This project is read-only.

Using other columns for facets?

Dec 18, 2009 at 11:41 AM

I've tried to and another column to the list of facets with the following XML:

<Column Name=”FileExtension” OrderBy=”Hits” SortOrder=”Descending” TotalResults=”5″ DisplayName=”File Type” DefaultImage=”STS_ListItem16.gif” >
<Mapping Match=”eml” DisplayName=”Email” Image=”iceml.gif” />
<Mapping Match=”msg” DisplayName=”Email” Image=”icmsg.gif” />
<Mapping Match=”html” DisplayName=”Web Page” Image=”html16.gif” />

The new type of facet appears in the list and there are some entries for it but not the ones that I've including in the Mappings.


ASPX (161)

DOCX (13)

ASPX?ID=1 (10)

PDF (4)

TIF (2)

ASPX?ID=3 (2)


ASPX?ID=2 (1)

HTML (1)


DOT (1)

DOC (1)

for example there is a result for PDFs but it doesn't show the icon I stipulate and the result for html does not show my display name.

Should it be possible to do what I'm trying to do?

Also Is there any way to tell it not to list certain results such as the ASPX?ID=2 etc.?



Dec 21, 2009 at 5:45 AM

I had a simliar issue. Solved it by using uppercase.

<Column Name="FileExtension" DisplayName="File Type" OrderBy="Hits" TotalResults="5"     DefaultImage="STS_ListItem16.gif" >          

<Mapping Match="MSG" DisplayName="Email" Image="iceml.gif" />                
<Mapping Match="PDF" DisplayName="Pdf" Image="pdficon.gif"/>                
<Mapping Match="TXT" DisplayName="Text" Image="ictxt.gif" />                
<Mapping Match="HTML" DisplayName="Html" Image="html16.gif" />                
<Mapping Match="HTM" DisplayName="Htm" Image="html16.gif" />              
<Mapping Match="ASPX" DisplayName="Asp.Net" Image="ASPX16.GIF" />           


Dec 21, 2009 at 1:11 PM

I've tried that now and it's working. However what do you do about things like ASPX?=ID1 ?



Dec 21, 2009 at 2:00 PM

I'm pretty much new to teh Facetd Search, so still flopping about, finding my feet.


This is what I used for the "ASPX?=ID1 ?" issues:-


<!--  This one is for SP lists  -->                

<Mapping Match="ASPX?ID=%" DisplayName=" SharePoint List" Image="ASPX16.GIF" />              




Dec 21, 2009 at 2:04 PM

That's a very prompt reply. I was just about to try something like that, myself.


Dec 21, 2009 at 3:30 PM

Just tried the following:

<Mapping Match="JPG" DisplayName="JPG Image" Image="JPG16.GIF" />

and it doesn't appear to work. Any ideas, anybody?

Dec 21, 2009 at 6:58 PM

Try this:


<Mapping Match="jpg" DisplayName="Jpg" Image="JPEG16.GIF" />                


For some strange reason (if U ever find out, please let us know!) the lowercase works here!


Dec 22, 2009 at 9:19 AM

It doesn't work for me. I tried typing it and cutting and pasting from your post but it won't work. Anybody have any other ideas?