User Guide

140 Chapter 10: Searching Collections with K2 Server
Using the rck2 utility to search K2 Server documents
The rck2 command-line utility lets you search collections associated with a K2 Server in a K2
Search System. The rck2.exe file, which starts the rck2 utility, is located in the
cf_root\lib\_nti40\bin directory in Windows, and in the cf_root/lib/platform/bin directory on
UNIX.
In these pathnames, cf_root refers to the ColdFusion MX root directory. In Windows, this is
typically C:\CFusionMX; on UNIX, this is typically /opt/coldfusionmx. On UNIX, platform
refers to the UNIX version of the server that runs ColdFusion: _solaris, _hpux11, or _ilnx21.
rck2 syntax
Use the following syntax to start rck2 from the command line:
rck2 -server <servername> -port <portno>
For example: c:\cfusionmx\lib\_nti40\bin\rck2 -server localhost -port 9901.
The following table describes rck2 syntax elements:
rck2 command options
The following table describes rck2 command options:
charMap A string that names the character set to use for strings that are sent into the
server and generated by the server. This string must match the name of a .cs file
in the root of the common directory that configures a character set and its
mappings. If not specified, the value of the charMap parameter from the server
section is used.
For example, if your application uses character set 8859 for all of its interactions
with the server, set this charMap parameter to the string 8859. Valid values
include, but are not limited to, the character sets supplied by Verity: 850 (default)
for code page 850; 8859 for code page 8859
inputDateFormat The input date format to be used. If there is no specified value for the
inputDateFormat parameter, the default is MDY (Month-Day-Year), a numeric
format.
Syntax element Description
-server <servername>
The server name for K2 Server to which to attach. The server name is
defined in the k2server.ini file. The rck2 utility searches the collections
attached to this server.
-port <portno>
The port number where K2 Server (specified by -server) is running.
rck2 command Description
p <sortspec>
The sort specification for the search results. By default, results are sorted by
Score. Multiple fields must be specified in a space-separated list using asc or
desc to indicate ascending or descending order. For example:
p score desc
title asc
m <maxdocs>
The maximum number of documents to return in the results list.
Keyword Description