When searching a folder in WebLink 10, the number of context hits displayed can be increased beyond the default value of 5 by editing the SearchResultsSettings.xml file. This works only if you are using the original search.aspx file that came with WebLink 10. If you had changed your configuration to use the old search9.aspx file, editing SearchResultsSettings.xml will not work and you can increase the number of context hits displayed to at most 20.
To increase the number of context hits displayed
- Navigate to the WebLink\Web Files subfolder of your WebLink installation folder. By default, this is C:\Program Files\Laserfiche\WebLink\WebLink\Web Files. Open the SearchResultsSettings.xml file for editing. If you do not see this file, open the WebLink Designer and navigate to the Search Results page. Make any change on the page and click Save. This will generate the SearchResultsSettings.xml file. After you are done with the instructions in this topic, you can go back and undo the change on the Search Results page.
- Locate the <DisplayEntry> block that contains the string ModuleType="CONTEXT_HITS". Locate the <Options> block that immediately follows this <DisplayEntry> block. Modify the value of MaximumListSize within this <Options> block to have the maximum number of displayed context hits you want. For example, to change the maximum from the default 5 to 60, replace MaximumListSize="5" with MaximumListSize="60".
- On the WebLink server, restart IIS. On the computer you are using to test the settings, clear your browser's cache. Try a new search to confirm that the new settings have been implemented.
Note: This method works only in WebLink 10 or later. In addition, this method does not work if you had configured WebLink 10 to use the Search9.aspx file.