Changing the Number of Context Hits Displayed on WebLink 8's Search Results Page.

April 5, 2011 | KB: 1012775
WebLink 8

Summary

When a WebLink user performs a full-text search, by default, only the first five context hits will be displayed for each matching document. For example, if a document contains the word apple 15 times, by default the search results page will only show five context hits. You can modify this behavior.

Changing the Number of Displayed Context Hits

Complete the following steps:

  1. On the machine hosting WebLink, browse to WebLink's installation drive. In most cases, this will be C:\Program Files\Laserfiche\WebLink 8.
  2. Browse into the Web Files folder, then the xsl folder.
  3. Open a file named SearchResults.xsl in a text editor (e.g., Notepad).
  4. Find the line that starts with <xsl:for-each select='ContextHits/ContextResult
  5. Change the number at the end of this line to be one greater than the number of context hits you want displayed (it is 6 by default). For example, if you want 10 hits displayed, change this number to 11.
  6. Save and close the file. There is no need to restart any services or machines, as this change will take effect immediately.