X-Git-Url: http://www.git.stargrave.org/?a=blobdiff_plain;f=Documentation%2Fpublic-inbox-extindex.pod;h=f71a90e588f16c5e4269ee9c2778d53ae6c888e8;hb=9537b9c7201a7c656c3efcb9918df930a7447981;hp=bed65272838a03e083c918bf2287d1ede3217607;hpb=0b15dfc58ceaecdcb1c9285c3ad55813006c8338;p=public-inbox.git diff --git a/Documentation/public-inbox-extindex.pod b/Documentation/public-inbox-extindex.pod index bed65272..f71a90e5 100644 --- a/Documentation/public-inbox-extindex.pod +++ b/Documentation/public-inbox-extindex.pod @@ -10,9 +10,6 @@ public-inbox-extindex [OPTIONS] [EXTINDEX_DIR] --all =head1 DESCRIPTION -FIXME: behavior not finalized It should probably write to the -config file the first time --all is used. - public-inbox-extindex creates and updates an external search and overview database used by the read-only public-inbox PSGI (HTTP), NNTP, and IMAP interfaces. This requires either the @@ -23,9 +20,54 @@ along with L and L Perl modules. =over -=item --jobs=JOBS, -j +=item -j JOBS + +=item --jobs=JOBS + +=item --no-fsync + +=item --dangerous + +=item --rethread + +=item --max-size SIZE + +=item --batch-size SIZE + +These switches behave as they do for L + +=item --all + +Index all C entries in C. -... TODO, see L +C entries indexed by C can +have full Xapian searching abilities with the per-C +C set to C and their respective Xapian +(C or C) directories removed. For multiple +public-inboxes where cross-posting is common, this allows +significant space savings on Xapian indices. + +=item --gc + +Perform garbage collection instead of indexing. Use this if +inboxes are removed from the extindex, or if messages are +purged or removed from some inboxes. + +=item --reindex + +Forces a re-index of all messages in the extindex. This can be +used for in-place upgrades and bugfixes while read-only server +processes are utilizing the index. Keep in mind this roughly +doubles the size of the already-large Xapian database. + +The extindex locks will be released roughly every 10s to +allow L and L +processes to write to the extindex. + +=item --fast + +Used with C<--reindex>, it will only look for new and stale +entries and not touch already-indexed messages. =back @@ -35,7 +77,19 @@ L =head1 CONFIGURATION -... TODO, see L +public-inbox-extindex does not currently write to the +L file, configuration may be entered +manually. The extindex name of C is a special case which +corresponds to indexing C<--all> inboxes. An example for +C<--all> is as follows: + + [extindex "all"] + topdir = /path/to/extindex_dir + url = all + coderepo = foo + coderepo = bar + +See L for more details. =head1 ENVIRONMENT @@ -75,7 +129,7 @@ L =head1 COPYRIGHT -Copyright 2021 all contributors L +Copyright all contributors L License: AGPL-3.0+ L