07
Sep

To configure a Search results page to return a column name in place of the document synopsis, follow the instructions below.  In this case we were required to replace the document synopsis with a custom column called DocumentSubject from the document metadata.

  • Add the column name as a mapped property.
  • Navigate to a search results page and Edit the page to access the web parts
  • In the Search Core Results Web Part select Edit and Modify the Web Part
  • In the Search Core Results settings window navigate to the Results Query Options
  • Select the Selected columns and enter the column name to be displayed, in this case <Column Name=”DocumentSubject”/> and Click OK to save the change
  • In Data View Properties click XSL Editor
  • Navigate to the section beginning  <div class=”srch-Description”>
  • To remove the synopsis from the search result, delete the section from as highlighted in the screenshot above
  • Under the tag <div class=”Srch-Description”> enter the following line for the column name to appear in the search result
    <xsl:value-of select”=documentsubject”/> </div>
  • Click Save to save the changes, click Apply and Ok the see the changes in the search results page.

The Search Result will now bring back the Document Subject for the document.

VN:F [1.9.2_1090]
Rating: 0.0/10 (0 votes cast)
VN:F [1.9.2_1090]
Rating: 0 (from 0 votes)

Comments are closed.

-->