Note: This applies to DocuShare 6.0.x, 6.5.x, 6.6.x.
Note: This solution does not apply to the Quick Search default maximum search limit. If you require the Quick Search default maximum limit changed you will need a DSDN subscription or to upgrade to DocuShare 7 and contact DocuShare support for the solution.
The Default maximum Search limit is 100. This limit can be changed if necessary.
Solution
To change the search limit maximum the following two vdf files will need to be modified.
• dslib.vdf-for the Basic Search defaults
• SearchFormLib.vdf-for the Advanced Search Page
Note: You must be a Server Administrator to perform this solution.
Caution: Do NOT edit the original VDF files.
Note: Verify that you have a backup of the original file before modifying the copy, this will allow you to revert back to the original file if the changes do not produce the desired result. (Solution 1 & 2 steps a-d of the solution provide steps for creating a copy/backup of the original file)
1. Modify the dslib.vdf:
a. Open Windows Explorer and navigate into the <dshome>\amber\templates\system directory.
b. Make a copy the dslib.vdf file.
c. Browse to the <dshome>\amber\templates\local directory.
Where <dshome> is the installation directory for DocuShare. The default installation path for DocuShare is C:\Xerox\Docushare. Depending on your installation environment this path may vary.
Note: If the <dshome>\amber\templates\local directory does not exist then one will need to be created. All customized vdf files should be placed in the local directory.
d. Paste a copy of the dslib.vdf file into the <dshome>\amber\templates\local directory.
Note: DocuShare will look for the local directory for customized VDFs before going to the (default) system folder
e. Open the dslib.vdf with a text editor such as Notepad.
f. Search for 1000.
g. Copy the following line and paste it below to create a new line
<option value="1000">1000</option>
h. Change the value to the maximum result you want.
Example: <option value="2000">2000</option>
The entire section should now look like this:
<div class="column3">
<span class="labelwrapper"><label for="nresults"><insert ref="viewdef:dslib:PropHelp(name='maximum_results_query')"/></label></span>
<select name="nresults" size="1" tabindex="1">
<option value="5">5</option>
<option value="20">20</option>
<option value="50">50</option>
<option value="100" selected="selected">100</option>
<option value="250">250</option>
<option value="500">500</option>
<option value="1000">1000</option>
<option value="2000">2000</option>
</select>
i. Save the file.
2. Modify the SearchFormLib.vdf
a. Open Windows Explorer and navigate into the <dshome>\amber\templates\system directory.
b. Make a copy the SearchFormLib.vdf file.
c. Browse to the <dshome>\amber\templates\local directory.
Where <dshome> is the installation directory for DocuShare. The default installation path for DocuShare is C:\Xerox\Docushare. Depending on your installation environment this path may vary.
Note: If the <dshome>\amber\templates\local directory does not exist then one will need to be created. All customized vdf files should be placed in the local directory.
d. Paste a copy of the SearchFormLib.vdf file into the <dshome>\amber\templates\local directory.
Note: DocuShare will look for the local directory for customized VDFs before going to the (default) system folder
e. Open the SearchFormLib.vdf with a text editor such as Notepad
f. Search for 1000.
g. Copy the following section and paste it below and before the </select> to create a new section.
<if cond="${local:getMaxResults} == 1000">
<option value="1000" selected="selected">1000</option>
<else>
<option value="1000">1000</option>
</else></if>
h. Change the values to the maximum result you want.
Example:
<if cond="${local:getMaxResults} == 2000">
<option value="2000" selected="selected">2000</option>
<else>
<option value="2000">2000</option>
</else></if>
Entry should now look like this:
Example:
<if cond="${local:getMaxResults} == 1000">
<option value="1000" selected="selected">1000</option>
<else>
<option value="1000">1000</option>
</else></if>
<if cond="${local:getMaxResults} == 2000">
<option value="2000" selected="selected">2000</option>
<else>
<option value="2000">2000</option>
</else></if>
</select>
</div>
i. Search for 1000 again.
j. Copy the following section and paste it below and before </select> to create a new section.
<if cond="${local:getMaxResults} == 1000">
<option value="1000" selected="selected">1000</option>
<else>
<option value="1000">1000</option>
</else></if>
k. Change the values to the maximum results you want
Example:
<if cond="${local:getMaxResults} == 2000">
<option value="2000" selected="selected">2000</option>
<else>
<option value="2000">2000</option>
</else></if>
Example of modified file:
<if cond="${local:getMaxResults} == 1000">
<option value="1000" selected="selected">1000</option>
<else>
<option value="1000">1000</option>
</else></if>
<if cond="${local:getMaxResults} == 2000">
<option value="2000" selected="selected">2000</option>
<else>
<option value="2000">2000</option>
</else></if>
</select>
</td>
</tr>
l. Save the file.
3. Modify the <dshome>\config\SearchServerConfig.xml
Note: This step only applies to DocuShare 6.5.x and above. If you are running an older version of DocuShare skip this step.
a. Open Windows Explorer and browse to the <dshome>\config directory.
b. Make a copy of the SearchServerConfig.xml file and rename the copy SearchServerConfig.xml.orig.
c. Open the SearchServerConfig.xml file in a text editor such as Notepad.
d. Change the search limit to the maximum results you want.
Example: <searchLimit>2000</searchLimit>
e. Save the file.
4. Restart DocuShare.
Solution Updated: September 24, 2018
Solution ID: 862