To return the total number of unsecured hits in a search, you must do the following:
unfiltered_count:yes
, in a style.plc
file before indexing anything into the collection
VdkSearchParam_CountAllHitsOpt
flag in VdkSearchNew
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
- }
- $$
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.