Returning Document Counts


To return the total number of unsecured hits in a search, you must do the following:

For more information, see "Using a style.plc File" below.

For K2 users, you must additionally use one of the following command-line tools with the appropriate option as described:

rck2 -checkmaxdocs

rcvdk -m

For more information, see the Verity Developer's Kit API Reference Guide V4.5.

Using a style.plc File

You must specify the unfiltered_count:yes line a style.plc file, and place it in the style file directory for the relevant collections for which you want to enable this feature. The style.plc file is a plain ASCII text file.

Following is a sample style.plc file that only enables the unfiltered count feature.


$control: 1
policy:
{
unfiltered_count:yes
}
$$
NOTE: If you are also specifying an indexing mode, you should include the line, unfiltered_count=yes, at the bottom of your style.plc file before the last curly bracket.

For more information on indexing modes, see the earlier sections in this chapter.





Copyright © 2002, Verity, Inc. All rights reserved.