User Guide

133
CHAPTER 10
Searching Collections with K2 Server
This chapter provides information about how to configure the Verity K2 Server, which is installed
with ColdFusion MX.
Contents
Using K2 Server . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 133
Stopping K2 Server . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 135
The k2server.ini parameter reference . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 136
Using the rck2 utility to search K2 Server documents . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 140
Using K2 Server
You configure K2 Server to work with ColdFusion MX with the following steps:
1 Edit the k2server.ini file to specify the alias collection names you want to expose to K2 Server.
(See “Editing the k2server.ini file” on page 133.)
2 Start K2 Server by running the k2server executable. (See “Starting K2 Server” on page 135.)
3 Specify hostname and port information for K2 Server. (See “Specifying K2 Server parameters
in the ColdFusion MX Administrator” on page 135.)
Editing the k2server.ini file
To enable a collection for searching using K2 Server, you must first configure the k2server.ini file.
This file is located in the cf_root\lib\ directory in Windows, and in the cf_root/lib/ 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.
The k2server.ini file consists of several parameters that typically remain unchanged. You must
verify or make minor edits to settings in the portNo, vdkHome, and Coll-n sections.