User Guide
124 Chapter 6 Configuring Verity K2 Server
Editing the k2server.ini File
To enable a collection for searching using K2 Server, you need to first set up the
k2server.ini file. On Windows platforms, k2server.ini can be found in:
cfusion\bin. On UNIX, k2server.ini can be found in: opt/coldfusion/verity/
<platform>/bin
.
The
k2server.ini file consists of a large number of parameters you probably won’t
need to change. To get started quickly focus on the following sections in the
k2server.ini file:
•
vdkHome (line 33 in the k2server.ini file listing on page 125)
• The
Coll-n sections of k2server.ini: (beginning at line 66 in the k2server.ini
file listing on page 125)
In the file listing for k2server.ini, the collection section can be found between lines
66-78.
For complete details on k2server.ini parameters, refer to “k2server.ini Parameter
Reference” on page 127.
Edit the vdkHome parameter of k2server.ini
The value of the vdkHome parameter in k2server.ini should be the directory where
your Verity files are installed.
• Windows platforms default:
c:\cfusion\verity
• Non-Windows platforms default: /opt/coldfusion/verity.
Edit the Coll-n section of k2server.ini
In the Col-n section of k2server.ini, you need to specify the directory location of
the collections you want K2 Server to search in the
collPath parameter. This value
must point to an existing Verity collection. The k2server executable can’t be used to
create a collection.
For example, the
collPath value points to the collection created for ColdFusion once
you have first indexed the ColdFusion online documentation (this collection is not
created at setup time):
[Coll-0]
collPath=c:\cfusion\verity\collections\cfdocumentation\custom
collAlias=cfdoc_custom
topicSet=
knowledgeBase=
onLine=2
Create a Coll-n section for each collection you want to search with K2 server,
incrementing the value n by one for each entry.