Parameter |
Description |
serverAlias
|
An arbitrary name used to identify the server.
|
numThreads
|
Default number of search threads to be started in the server process. Iftoo many threads exist, the system can run out of memory; if too few threads exist, then searches will be blocked and forced to wait for a Verity engine thread to become free. The value of numThreads is based on hardware resources and system needs..
|
maxFiles
|
The maximum number of file handles that can be opened by a specific search thread. The default value for maxFiles is dependent on the limits of the OS used. The maxFiles value affects how file handles are shared between the operating system and the search engine. The maxFiles and numThreads values together can be used to tune system performance. These values can be set for a server:
[server]
numThreads=4
maxFiles=100
The above entries for a K2 Server cause the system to support a maximum of 4 concurrent searches, with 100 file handles allocated for each search thread. The search engine determines default values per operating system. For large or fragmented collections, it is recommended that you explicitly set a value for maxFiles.
|
portNo
|
TCP port number for client connections. The value of portNo is the same value assigned to portNo in the k2broker.ini file that identifies the broker referring to this server.
|
numListeners
|
Maximum number of clients that can connect to the server at one time. The numListeners value must be equal to or greater than the sum of all numThreads values specified by all K2 Brokers in the K2 search system. The numThreads value is set for a K2 Broker in the k2broker.ini file.
|
broker(n)
|
Brokers to ping on startup. Multiple brokers may be specified. For example:
broker(1)=machinea:9900
broker(2)=machineb:9901
|
maxColSize
|
The maximum width of the fields to return to the results list, in bytes. Default is 2048 bytes.
|
Keyword |
Description |
vdkHome
|
Directory containing Verity resources.
|
vdkSortingFlag
|
A flag indicating whether the Verity engine will sort at the collection level. Valid values are:
NO or False or 0 to not perform sorting at the collection level (default)
YES or True or 1 to perform sorting at the collection level.
To implement sorting at the collection level you must set vdkSortingFlag to YES in the k2server.ini file (in the [server] section) and the k2broker.ini file (in the [broker] section).
|
sortTruncDocs
|
Maximum number of documents to consider when sorting.
|
accessProfile
|
Security Access Profile specified in the form of a query expression. The security access profile represents the access question that a document must pass in order for users to have access to it.
|
topicSet
|
Default 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.
|
knowledgeBase
|
Default path name to a knowledgebase map file, which identifies numerous topic sets (indexed topics). The value of knowledgeBase identifies the topic sets (multiple) to make available to clients at start-up for every search service).
|
charMap
|
A string that names the character set to use for strings that are sent into the server, and are generated by the server. This string must correspond to the name of a .cs file in the root of the common directory that configures a character set and its mappings. For example, if your application should use character set 8859 for all of its interactions with the server, then set this charMap 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.
|
locale
|
The name of the locale (combination of language, dialect, and character set) to use for all internal Verity engine operations. This name must correspond to a subdirectory in the common directory where the configuration file for the locale is found and where the message database and other locale-specific files are located. Leaving this keyword null means the server will use the default internal locale, which is "english" written in the "850" character set.
|
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 |
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.
|
knowledgeBase
|
The path name to a knowledgebase map file, which identifies numerous topic sets (indexed topics). The value of knowledgeBase identifies the topic sets (multiple) to make available to clients at start-up for every search service. If not specified, the value of knowledgeBase from the [server] section is used.
|
numThreads
|
The number of concurrent searches for the collection. If not specified, the value of numThreads from the [server] section is used.
|
maxFiles
|
The maximum number of files that can be opened by a specific search thread for a collection. If not specified, the value of maxFiles from the [server] section is used. The maxfiles and numThreads values together can be used to tune system performance. These values can be set for a collection: [Coll-0] numThreads=4 maxFiles=100 The above entries for collection 0 cause K2 to support a maximum of 4 concurrent searches, with 100 file handles allocated for each search thread.
|
onLine
|
A flag indicating whether the server starts up with the collection on-line. Valid values are:
0 start the server with the collection off-line;
1 to start the server with the collection in a hidden state;
2 to start the server with the collection on-line (default).
In the hidden state, collections can be primed and tested, but are not yet available for searching by users. When collections are set off-line, any queries currently running complete using these resources; subsequent queries do not see the resource.
|
maxColSize
|
The maximum width of the fields to return to the results list, in bytes. If not specified, the value of maxColSize from the [server] section is used.
|
charMap
|
A string that names the character set to use for strings that are sent into the server, and are generated by the server. This string must correspond to 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 charMap from the [server] section is used. For example, if your application should use character set 8859 for all of its interactions with the server, then set this charMap 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
|
locale
|
The name of the locale (combination of language, dialect, and character set) to use for all internal Verity engine operations. This name must correspond to a subdirectory in the common directory where the configuration file for the locale is found and where the message database and other locale-specific files are located. If not specified, the value of locale from the [server] section is used.
|
inputDateFormat
|
The input date format to be used. If there is no specified value for inputDateFormat, the default is MDY (Month-Day-Year), a numeric format.
|