Parent: [eb7962] (diff)

Child: [ab9330] (diff)

Download this file

recollindex.1    294 lines (291 with data), 6.9 kB

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
.\" $Id: recollindex.1,v 1.7 2008-09-05 10:25:54 dockes Exp $ (C) 2005 J.F.Dockes\$
.TH RECOLLINDEX 1 "8 January 2006"
.SH NAME
recollindex \- indexing command for the Recoll full text search system
.SH SYNOPSIS
.B recollindex \-h
.br
.B recollindex
[
.B \-c
<configdir>
]
[
.B \-z|\-Z
]
[
.B \-k
]
.br
.B recollindex
[
.B \-c
<cd>
]
.B \-m
[
.B \-w
<secs>
]
[
.B \-D
]
[
.B \-x
]
[
.B \-C
]
[
.B \-n|-k
]
.br
.B recollindex
[
.B \-c
<cd>
]
.B \-i
[
.B \-Z
]
[
.B \-k
]
[
.B \-f
]
[<path [path ...]>]
.br
.B recollindex
[
.B \-c
<configdir>
]
.B \-r
[
.B \-Z
]
[
.B \-f
]
<dirpath>
.br
.B recollindex
[
.B \-c
<configdir>
]
.B \-e
[<path [path ...]>]
.br
.B recollindex
[
.B \-c
<configdir>
]
.B \-l
.br
.B recollindex
[
.B \-c
<configdir>
]
.B \-s
<lang>
.br
.B recollindex
[
.B \-c
<configdir>
]
.B \-S
.br
.B recollindex
[
.B \-c
<configdir>
]
.B \-E
.SH DESCRIPTION
The
.B recollindex
utility allows you to perform indexing operations for the Recoll text
search system.
.PP
As indexing can sometimes take a long time, the command can be interrupted
by sending an interrupt (Ctrl-C, SIGINT) or terminate (SIGTERM)
signal. Some time may elapse before the process exits, because it needs to
properly flush and close the index. This can also be done from the recoll
GUI (menu entry: File/Stop_Indexing). After such an interruption, the index
will be somewhat inconsistent because some operations which are normally
performed at the end of the indexing pass will have been skipped (for
example, the stemming and spelling databases will be inexistant or out of
date). You just need to restart indexing at a later time to restore
consistency. The indexing will restart at the interruption point (the full
file tree will be traversed, but files that were indexed up to the
interruption and for which the index is still up to date will not need to
be reindexed).
.PP
The
.B \-c
option specifies the configuration directory name, overriding the
default or $RECOLL_CONFDIR.
.PP
There are several modes of operation.
.PP
The normal mode will index the set of files described in the configuration
file
.B recoll.conf.
This will incrementally update the database with files that changed since
the last run. If option
.B \-z
is given, the database will be erased before starting. If option
.B \-Z
is given, the database will not be reset, but all files will be considered
as needing reindexing (in place reset).
.PP
As of version 1.21,
.B recollindex
usually does not process again files which previously failed to index (for
example because of a missing helper program). If option
.B \-k
is given,
.B recollindex
will try again to process all failed files. Please note that
.B recollindex
may also decide to retry failed files if the auxiliary checking script
defined by the "checkneedretryindexscript" configuration variable indicates
that this should happen.
.PP
If option
.B
\-m
is given, recollindex is started for real time monitoring, using the
file system monitoring package it was configured for (either fam, gamin, or
inotify). This mode must have been explicitly configured when building the
package, it is not available by default. The program will normally detach
from the controlling terminal and become a daemon. If option
.B
\-D
is given, it will stay in the foreground. Option
.B
\-w
<seconds> can be used to specify that the program should sleep for the
specified time before indexing begins. The default value is 60. The daemon
normally monitors the X11 session and exits when it is reset.
Option
.B
\-x
disables this X11 session monitoring (daemon will stay alive even if it
cannot connect to the X11 server). You need to use this too if you use the
daemon without an X11 context. You can use option
.B
\-n
to skip the initial incrementing pass which is normally performed before
monitoring starts. Once monitoring is started, the daemon normally monitors
the configuration and restarts from scratch if a change is made. You can
disable this with option
.B
\-C
.PP
.B recollindex \-i
will index individual files into the database. The stem expansion and
aspell databases will not be updated. The skippedPaths and skippedNames
configuration variables will be used, so that some files may be
skipped. You can tell recollindex to ignore skippedPaths and skippedNames
by setting the
.B
\-f
option. This allows fully custom file selection for a given subtree,
for which you would add the top directory to skippedPaths, and use any
custom tool to generate the file list (ie: a tool from a source code
control system).
.PP
.PP
.B recollindex \-e
will erase data for individual files from the database. The stem expansion
databases will not be updated.
.PP
With options
.B \-i
or
.B \-e
, if no file names are given on the command line, they
will be read from stdin, so that you could for example run:
.PP
find /path/to/dir \-print | recollindex \-e
.PP
followed by
.PP
find /path/to/dir \-print | recollindex \-i
.PP
to force the reindexing of a directory tree (which has to exist inside the
file system area defined by
.I topdirs
in recoll.conf). You could mostly accomplish the same thing with
.PP
.B find /path/to/dir \-print | recollindex \-f \-Z
.PP
.B recollindex \-r
mostly works like \-i, but the parameter is a single directory, which will
be recursively updated. This mostly does nothing more than
.B find topdir | recollindex \-i
but it may be more convenient to use when started from another program.
.PP
.B recollindex \-l
will list the names of available language stemmers.
.PP
.B recollindex \-s
will build the stem expansion database for a given language, which may or
may not be part of the list in the configuration file. If the language is
not part of the configuration, the stem expansion database will be deleted
at the end of the next normal indexing run. You can get the list of stemmer
names from the
.B recollindex \-l
command. Note that this is mostly for experimental use, the normal way to
add a stemming language is to set it in the configuration, either by
editing "recoll.conf" or by using the GUI indexing configuration dialog.
.br
At the time of this writing, the following languages
are recognized (out of Xapian's stem.h):
.IP \(bu
danish
.IP \(bu
dutch
.IP \(bu
english Martin Porter's 2002 revision of his stemmer
.IP \(bu
english_lovins Lovin's stemmer
.IP \(bu
english_porter Porter's stemmer as described in his 1980 paper
.IP \(bu
finnish
.IP \(bu
french
.IP \(bu
german
.IP \(bu
italian
.IP \(bu
norwegian
.IP \(bu
portuguese
.IP \(bu
russian
.IP \(bu
spanish
.IP \(bu
swedish
.PP
.B recollindex \-S
will rebuild the phonetic/orthographic index. This feature uses the
.B aspell
package, which must be installed on the system.
.PP
.B recollindex \-E
will check the configuration file for topdirs and other relevant paths
existence (to help catch typos).
.SH SEE ALSO
.PP
recoll(1) recoll.conf(5)