User Guide
k2server.ini Parameter Reference 129
Collection sections
The K2 Server initializes a separate search service for each collection that you
identify in the server configuration file. To add one or more collections to the
configuration file, enter a separate block of keywords for each collection in the
following format:
[Coll-n]
collPath=<pathname>
topicSet=<topicset>
knowledgeBase=<knowledgeBase>
numThreads=<value>
maxFiles=<value>
onLine=<value>
maxColSize=<value>
locale=<language>
charmap=<charmap>
inputDateFormat=<format>
Increment the block label for each collection that you configure, starting with Coll-0.
The following table lists the keywords used to configure each collection and search
service:
resultCacheTimeout Timeout in milliseconds for the result cache. Timeout occurs after 60
seconds or when the cache overflows based on
resultCacheQuota.
resultCacheQuota The number of slots per segment for the result cache. The result
cache is composed of 16 segments, each of which has a number of
slots for caching items in: K2SearchNew, K2SearchRecv,
K2DocReadBatch. Timeout occurs after
resultCacheQuota
value * 16
.
If
resultCacheQuota=10, each of the segments has 10 slots. Note
that since a search operation involves a call to K2SearchNew and a
call to K2SearchRecv, an additional slot is used.
resultCacheEnabled A flag indicating whether the result cache is enabled. Valid values are:
• Yes or True or 1 enables the result cache.
• No or False or 0 disables the result cache (default).
By default, the cache is not enabled.
resultCacheMaxInBytes Amount of memory, in bytes, to use for the cache.
Keyword Description
Keyword Description
collPath The path name identifying the collection home directory.
collAlias An arbitrary name used to identify the collection.
topicSet The path name to a directory for the default topic set, which is an indexed
set of topics. The value of topicSet identifies the default topic set to make
available to clients at start-up by every search service. If not specified, the
value of topicSet from the [server] section is used.