Thursday, March 20, 2014

How to add Adobe PDF to SharePoint Advanced Search result type drop down list

By default, Fast Search Advanced Search does not include Adobe PDF on the Result type filter.

So, to add a new result type for Adobe PDF, please follow the following steps:

  • Edit the Advance Search page

  • Edit the Advanced Search Box web part

  • Expand Properties

  • Click the button next to the Properties textbox and copy the text to an XML Editor (for easy editing)

  • In the XML Editor, add the following before the ResultTypes closing tag

<ResultType DisplayName=”Adobe PDF” Name=”acrobatpdf”>

<KeywordQuery>FileExtension=”pdf”</KeywordQuery>

<PropertyRef Name=”Author” />

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

  • Copy the changes back into the SharePoint Advance Search Box Properties Text Editor, and click OK.

  • Click OK on the Advance Search Box Panel

  • Click Save & Close to save the changes to the page

  • Check the Result Type drop down list and make sure Adobe PDF is in the list.

 

No comments:

Post a Comment