
70
CHAPTER 3 Customizing searCh
7. Scroll down to the ResultTypes section. This is where the result types are defined. Each
result type appears in the Result Type drop-down on the Advanced Search page.
8. Create a new result type for the document type.
<ResultType DisplayName=”PDF Documents” Name=”pdfdocuments”>
<KeywordQuery>FileExtension=”pdf”</KeywordQuery>
<PropertyRef Name=”Author” />
<PropertyRef Name=”CustomerName”/>
<PropertyRef Name=”CustomerNumber”/>
<PropertyRef Name=”DocComments”/>
<PropertyRef Name=”Description” />
<PropertyRef Name=”DocKeywords”/>
<PropertyRef Name=”FileName” />
<PropertyRef Name=”Size” />
<PropertyRef Name=”DocSubject”/>
<PropertyRef Name=”Path” />
<PropertyRef Name=”Write” />
<PropertyRef Name=”CreatedBy” />
<PropertyRef Name=”ModifiedBy” />
<PropertyRef Name=”Title”/>
</ResultType>
9. Copy the contents from the text editor, and paste it back into the Text Editor dialog in
SharePoint.
10. Click OK on the Text Editor dialog.
11. Click OK on the web part tool pane. Your new result type appears in the Result Type drop-
down, and any custom properties appear in the Property picker drop-down, as shown in
Figure3-12.
FINDING CONTENT WITH ALERTS
When users subscribe to alerts anywhere on the portal, the search service processes those alerts.
This interdependence means that if search is not working, alerts also are not working; and in addi-
tion ...