kopano-search.cfg.5 8.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296
  1. '\" t
  2. .\" Title: kopano-search.cfg
  3. .\" Author: [see the "Author" section]
  4. .\" Generator: DocBook XSL Stylesheets v1.79.1 <http://docbook.sf.net/>
  5. .\" Date: November 2016
  6. .\" Manual: Kopano Core user reference
  7. .\" Source: Kopano 8
  8. .\" Language: English
  9. .\"
  10. .TH "KOPANO\-SEARCH\&.CFG" "5" "November 2016" "Kopano 8" "Kopano Core user reference"
  11. .\" -----------------------------------------------------------------
  12. .\" * Define some portability stuff
  13. .\" -----------------------------------------------------------------
  14. .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  15. .\" http://bugs.debian.org/507673
  16. .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html
  17. .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  18. .ie \n(.g .ds Aq \(aq
  19. .el .ds Aq '
  20. .\" -----------------------------------------------------------------
  21. .\" * set default formatting
  22. .\" -----------------------------------------------------------------
  23. .\" disable hyphenation
  24. .nh
  25. .\" disable justification (adjust text to left margin only)
  26. .ad l
  27. .\" -----------------------------------------------------------------
  28. .\" * MAIN CONTENT STARTS HERE *
  29. .\" -----------------------------------------------------------------
  30. .SH "NAME"
  31. kopano-search.cfg \- The Kopano Search configuration file
  32. .SH "SYNOPSIS"
  33. .PP
  34. \fBsearch\&.cfg\fR
  35. .SH "DESCRIPTION"
  36. .PP
  37. The
  38. search\&.cfg
  39. is a configuration file for the Kopano Search Service\&.
  40. search\&.cfg
  41. contains instructions for the software to set up the connection, indexing and logging systems\&.
  42. .SH "FILE FORMAT"
  43. .PP
  44. The file consists of one big section, but parameters can be grouped by functionality\&.
  45. .PP
  46. The parameters are written in the form:
  47. .PP
  48. \fBname\fR
  49. =
  50. \fIvalue\fR
  51. .PP
  52. The file is line\-based\&. Each newline\-terminated line represents either a comment, nothing, a parameter or a directive\&. A line beginning with `#\*(Aq is considered a comment, and will be ignored by Kopano\&. Parameter names are case sensitive\&. Lines beginning with `!\*(Aq are directives\&.
  53. .PP
  54. Directives are written in the form:
  55. .PP
  56. !\fBdirective\fR
  57. \fI[argument(s)] \fR
  58. .PP
  59. The following directives exist:
  60. .PP
  61. \fBinclude\fR
  62. .RS 4
  63. Include and process
  64. \fIargument\fR
  65. .sp
  66. Example: !include common\&.cfg
  67. .RE
  68. .SH "EXPLANATION OF THE SERVICE SETTINGS PARAMETERS"
  69. .PP
  70. \fBindex_path\fR
  71. .RS 4
  72. Directory under which all index files will be placed\&.
  73. .sp
  74. Default:
  75. \fI/var/lib/kopano/index/\fR
  76. .RE
  77. .PP
  78. \fBrun_as_user\fR
  79. .RS 4
  80. After correctly starting, the server process will become this user, dropping root privileges\&. Note that the log file needs to be writeable by this user, and the directory too to create new logfiles after logrotation\&. This can also be achieved by setting the correct group and permissions\&.
  81. .sp
  82. Default value is empty, not changing the user after starting\&.
  83. .RE
  84. .PP
  85. \fBrun_as_group\fR
  86. .RS 4
  87. After correctly starting, the server process will become this group, dropping root privileges\&.
  88. .sp
  89. Default value is empty, not changing the group after starting\&.
  90. .RE
  91. .PP
  92. \fBpid_file\fR
  93. .RS 4
  94. Write the process ID number to this file\&. This is used by the init\&.d script to correctly stop/restart the service\&.
  95. .sp
  96. Default:
  97. \fI/var/run/kopano/search\&.pid\fR
  98. .RE
  99. .PP
  100. \fBrunning_path\fR
  101. .RS 4
  102. Change directory to this path when running in daemonize mode\&. When using the \-F switch to run in the foreground the directory will not be changed\&.
  103. .sp
  104. Default:
  105. \fI/\fR
  106. .RE
  107. .PP
  108. \fBlimit_results\fR
  109. .RS 4
  110. Limit the number of results returned to the server\&. If set to a nonzero value, only the N most relevant results will be returned to the server\&. This in turn limits the number of results that the user will see\&. If the limit is set to 0, all results will be returned\&.
  111. .sp
  112. Default:\fI0\fR
  113. .RE
  114. .SH "EXPLANATION OF THE SERVER SETTINGS PARAMETERS"
  115. .PP
  116. \fBserver_socket\fR
  117. .RS 4
  118. Socket to find the connection to the Kopano server\&.
  119. .sp
  120. Default:
  121. \fIfile:///var/run/kopano/server\&.sock\fR
  122. .RE
  123. .PP
  124. \fBssl_key_file\fR
  125. .RS 4
  126. The file containing the private key and certificate\&. Please read the SSL section in the
  127. \fBkopano-server\fR(8)
  128. manual on how to create this file\&.
  129. .sp
  130. Default:
  131. \fI/etc/kopano/ssl/search\&.pem\fR
  132. .RE
  133. .PP
  134. \fBssl_key_pass\fR
  135. .RS 4
  136. Enter your password here when your key file contains a password to be readable\&.
  137. .sp
  138. No default set\&.
  139. .RE
  140. .SH "EXPLANATION OF THE LISTEN SETTINGS PARAMETERS"
  141. .PP
  142. \fBserver_bind_name\fR
  143. .RS 4
  144. Connection path to which other processes can connect with the kopano\-search for performing search queries\&.
  145. .sp
  146. Use
  147. \fIhttp://0\&.0\&.0\&.0:port\fR
  148. to listen as an HTTP service on all IPv4 interfaces on the given
  149. \fIport\fR
  150. number\&.
  151. .sp
  152. Default:
  153. \fIfile:///var/run/kopano/search\&.sock\fR
  154. .RE
  155. .PP
  156. \fBssl_private_key_file\fR
  157. .RS 4
  158. kopano\-search will use this file as private key for SSL TLS\&. This file can be created with:
  159. \fBopenssl genrsa \-out /etc/kopano/search/privkey\&.pem 2048\fR\&.
  160. .sp
  161. Default:
  162. \fI/etc/kopano/search/privkey\&.pem\fR
  163. .RE
  164. .PP
  165. \fBssl_certificate_file\fR
  166. .RS 4
  167. kopano\-search will use this file as certificate for SSL TLS\&. A self\-signed certificate can be created with:
  168. \fBopenssl req \-new \-x509 \-key /etc/kopano/search/privkey\&.pem \-out /etc/kopano/search/cert\&.pem \-days 1095\fR\&.
  169. .sp
  170. Default:
  171. \fI/etc/kopano/search/cert\&.pem\fR
  172. .RE
  173. .SH "EXPLANATION OF THE LOG SETTINGS PARAMETERS"
  174. .PP
  175. \fBlog_method\fR
  176. .RS 4
  177. The method which should be used for logging\&. Valid values are:
  178. .PP
  179. \fIsyslog\fR
  180. .RS 4
  181. Use the Linux system log\&. All messages will be written to the mail facility\&. See also
  182. \fBsyslog.conf\fR(5)\&.
  183. .RE
  184. .PP
  185. \fIfile\fR
  186. .RS 4
  187. Log to a file\&. The filename will be specified in
  188. \fBlog_file\fR\&.
  189. .RE
  190. .sp
  191. Default:
  192. \fIfile\fR
  193. .RE
  194. .PP
  195. \fBlog_level\fR
  196. .RS 4
  197. The level of output for logging in the range from 0 to 5\&. 0 means no logging, 5 means full logging\&.
  198. .sp
  199. Default:
  200. \fI3\fR
  201. .RE
  202. .PP
  203. \fBlog_file\fR
  204. .RS 4
  205. When logging to a file, specify the filename in this parameter\&. Use
  206. \fI\-\fR
  207. (minus sign) for stderr output\&.
  208. .sp
  209. Default:
  210. \fI/var/log/kopano/search\&.log\fR
  211. .RE
  212. .PP
  213. \fBlog_timestamp\fR
  214. .RS 4
  215. Specify whether to prefix each log line with a timestamp in \*(Aqfile\*(Aq logging mode\&.
  216. .sp
  217. Default:
  218. \fI1\fR
  219. .RE
  220. .PP
  221. \fBlog_buffer_size\fR
  222. .RS 4
  223. Buffer logging in what sized blocks\&. The special value 0 selects line buffering\&.
  224. .sp
  225. Default:
  226. \fI0\fR
  227. .RE
  228. .SH "EXPLANATION OF THE ADVANCED SETTINGS PARAMETERS"
  229. .PP
  230. \fBsearch_engine\fR
  231. .RS 4
  232. Backend search engine (currently only xapian is supported)\&.
  233. .sp
  234. Default: xapian
  235. .RE
  236. .PP
  237. \fBterm_cache_size\fR
  238. .RS 4
  239. The size in bytes of the term cache used when writing terms to the index\&. A larger term cache will increase indexing speed when indexing large number of documents in a single store\&. This will barely affect incremental updates after the initial indexing has finished\&. This value may contain a k, m or g multiplier\&.
  240. .sp
  241. Default: 64M
  242. .RE
  243. .PP
  244. \fBindex_exclude_properties\fR
  245. .RS 4
  246. Some properties are ignored because they contain unrelated information for users to find their messages on\&. A default set of ignored property ids is set here, but can be expanded\&. Only the id part of a property is needed, and must be string typed properties\&. The field is space separated\&.
  247. .sp
  248. Default: 007D 0064 0C1E 0075 678E 678F
  249. .RE
  250. .PP
  251. \fBindex_processes\fR
  252. .RS 4
  253. Number of indexing processes used during initial indexing\&. Setting this to a higher value can greatly speed up initial indexing, especially when attachments are indexed\&.
  254. .sp
  255. Default: 1
  256. .RE
  257. .PP
  258. \fBindex_junk\fR
  259. .RS 4
  260. Index junk folders
  261. .sp
  262. Default: yes
  263. .RE
  264. .PP
  265. \fBsuggestions\fR
  266. .RS 4
  267. Prepare search suggestions ("did\-you\-mean?") during indexing\&. Junk folders are excluded\&. This takes up a large percentage of the used disk space\&.
  268. .sp
  269. Default: yes
  270. .RE
  271. .SH "EXPLANATION OF THE ATTACHMENT SETTINGS PARAMETERS"
  272. .PP
  273. \fBindex_attachments\fR
  274. .RS 4
  275. Enable indexing of attachments\&. When attachments are being indexed, searching for keywords in the body of a message will automatically cause the attachment to be searched as well\&.
  276. .sp
  277. This will slow down the indexing process, require more system memory and increases index file size\&.
  278. .sp
  279. Default:
  280. \fIno\fR
  281. .RE
  282. .PP
  283. \fBindex_attachment_max_size\fR
  284. .RS 4
  285. Maxiumum file size for attachments to be indexed\&. Any attachment larger then this amount will not be indexed\&. This value may contain a k, m or g multiplier\&.
  286. .sp
  287. Default:
  288. \fI5M\fR
  289. .RE
  290. .SH "AUTHOR"
  291. .PP
  292. Written by Kopano\&.
  293. .SH "SEE ALSO"
  294. .PP
  295. \fBkopano-search\fR(8)