user/dev discussion of public-inbox itself
 help / color / mirror / code / Atom feed
Search results ordered by [date|relevance]  view[summary|nested|Atom feed]
thread overview below | download mbox.gz: |
* Re: [PATCH 1/2] doc: add manpage for -cindex
  2023-08-06  4:10  5%   ` Kyle Meyer
@ 2023-08-16  2:12  5%     ` Eric Wong
  0 siblings, 0 replies; 4+ results
From: Eric Wong @ 2023-08-16  2:12 UTC (permalink / raw)
  To: Kyle Meyer; +Cc: meta

Kyle Meyer <kyle@kyleam.com> wrote:
> Eric Wong writes:
> 
> > +=head1 NAME
> > +
> > +public-inbox-index - create and update search for code repositories
> 
> s/-index/-cindex/
> 
> > +(fuzzy join) coderepos with Xapian-indexed inboxes.  It only indexes
> > +commit messages and diffs as they would show up in a an email.  It
> 
> s/a an/an/

Thanks, will push with this squashed in:

diff --git a/Documentation/public-inbox-cindex.pod b/Documentation/public-inbox-cindex.pod
index 93149e62..d2d5dadc 100644
--- a/Documentation/public-inbox-cindex.pod
+++ b/Documentation/public-inbox-cindex.pod
@@ -1,6 +1,6 @@
 =head1 NAME
 
-public-inbox-index - create and update search for code repositories
+public-inbox-cindex - create and update search for code repositories
 
 =head1 SYNOPSIS
 
@@ -13,7 +13,7 @@ public-inbox-cindex [OPTIONS] --update
 public-inbox-cindex creates and updates the Xapian search index for
 git code repository (C<coderepo>) search.  It can also associate
 (fuzzy join) coderepos with Xapian-indexed inboxes.  It only indexes
-commit messages and diffs as they would show up in a an email.  It
+commit messages and diffs as they would show up in an email.  It
 does not index the contents of blobs directly.
 
 Like inbox indices, coderepo indices can either be internal or external
@@ -120,7 +120,7 @@ Use C<publicinbox.indexBatchSize> instead.
 
 =head1 UPGRADING
 
-Occasionally, public-inbox will update it's schema version and
+Occasionally, public-inbox will update its schema version and
 require a full reindex by running this command with L</--reindex>.
 
 =head1 CONTACT


^ permalink raw reply related	[relevance 5%]

* Re: [PATCH 1/2] doc: add manpage for -cindex
  2023-08-06  2:31  4% ` [PATCH 1/2] doc: add manpage for -cindex Eric Wong
@ 2023-08-06  4:10  5%   ` Kyle Meyer
  2023-08-16  2:12  5%     ` Eric Wong
  0 siblings, 1 reply; 4+ results
From: Kyle Meyer @ 2023-08-06  4:10 UTC (permalink / raw)
  To: Eric Wong; +Cc: meta

Eric Wong writes:

> +=head1 NAME
> +
> +public-inbox-index - create and update search for code repositories

s/-index/-cindex/

> +(fuzzy join) coderepos with Xapian-indexed inboxes.  It only indexes
> +commit messages and diffs as they would show up in a an email.  It

s/a an/an/

> +=head1 UPGRADING
> +
> +Occasionally, public-inbox will update it's schema version and

s/it's/its/

(This typo is shared with the docs of public-inbox-extindex and
public-inbox-index.)

^ permalink raw reply	[relevance 5%]

* [PATCH 0/2] doc updates for -clone + -cindex
@ 2023-08-06  2:31  7% Eric Wong
  2023-08-06  2:31  4% ` [PATCH 1/2] doc: add manpage for -cindex Eric Wong
  0 siblings, 1 reply; 4+ results
From: Eric Wong @ 2023-08-06  2:31 UTC (permalink / raw)
  To: meta

cindex still needs work (both doc and implementation)...

Eric Wong (2):
  doc: add manpage for -cindex
  doc: clone: add a note about git 2.41+ and fetch.hideRefs

 Documentation/public-inbox-cindex.pod | 141 ++++++++++++++++++++++++++
 Documentation/public-inbox-clone.pod  |   6 +-
 MANIFEST                              |   1 +
 3 files changed, 147 insertions(+), 1 deletion(-)
 create mode 100644 Documentation/public-inbox-cindex.pod

^ permalink raw reply	[relevance 7%]

* [PATCH 1/2] doc: add manpage for -cindex
  2023-08-06  2:31  7% [PATCH 0/2] doc updates for -clone + -cindex Eric Wong
@ 2023-08-06  2:31  4% ` Eric Wong
  2023-08-06  4:10  5%   ` Kyle Meyer
  0 siblings, 1 reply; 4+ results
From: Eric Wong @ 2023-08-06  2:31 UTC (permalink / raw)
  To: meta

It's similar to a combination of -index and -extindex but
perhaps more refined this time around...
---
 Documentation/public-inbox-cindex.pod | 141 ++++++++++++++++++++++++++
 MANIFEST                              |   1 +
 2 files changed, 142 insertions(+)
 create mode 100644 Documentation/public-inbox-cindex.pod

diff --git a/Documentation/public-inbox-cindex.pod b/Documentation/public-inbox-cindex.pod
new file mode 100644
index 00000000..93149e62
--- /dev/null
+++ b/Documentation/public-inbox-cindex.pod
@@ -0,0 +1,141 @@
+=head1 NAME
+
+public-inbox-index - create and update search for code repositories
+
+=head1 SYNOPSIS
+
+public-inbox-cindex [OPTIONS] GIT_DIR...
+
+public-inbox-cindex [OPTIONS] --update
+
+=head1 DESCRIPTION
+
+public-inbox-cindex creates and updates the Xapian search index for
+git code repository (C<coderepo>) search.  It can also associate
+(fuzzy join) coderepos with Xapian-indexed inboxes.  It only indexes
+commit messages and diffs as they would show up in a an email.  It
+does not index the contents of blobs directly.
+
+Like inbox indices, coderepo indices can either be internal or external
+to a coderepo.  Either way, they're both created and updated through
+public-inbox-cindex.
+
+Once the initial indices are created by public-inbox-cindex,
+the L</--update> switch will incrementally update them.
+
+=head1 OPTIONS
+
+=over
+
+=item -d EXTDIR
+
+Use the given directory as an external index.  External indices are
+generally recommended to internal indices since they do not need
+write access to any code repositories themselves.  They are highly
+recommended when many repositories share a common history or if
+there is an M:N relationship between inboxes and coderepos.
+
+=item -j JOBS
+
+=item --jobs=JOBS
+
+Influences the number of Xapian indexing shards.
+
+If the repo has not been indexed or initialized, C<JOBS - 1>
+shards will be created.
+
+Default: the number of existing Xapian shards
+
+=item --reindex
+
+Forces a re-index of all commits.  This can be used for in-place
+upgrades and bugfixes while read-only processes are utilizing the index.
+
+=item --update
+
+=item -u
+
+Incrementally index all previously-indexed coderepos.
+
+=item --prune
+
+Removes commits which are no longer accessible via git.
+Use this after L<git-gc(1)> (or L<git-prune(1)>).
+
+=item --no-fsync
+
+Disables L<fsync(2)> and L<fdatasync(2)> operations on SQLite
+and Xapian.  This is only effective with Xapian 1.4+.  This is
+primarily intended for systems with low RAM and the small
+(default) C<--batch-size=1m>.  Users of large C<--batch-size>
+may even find disabling L<fdatasync(2)> causes too much dirty
+data to accumulate, resulting on latency spikes from writeback.
+
+=item --max-size SIZE
+
+=item --batch-size SIZE
+
+These affect the coderepo index the same way they affect
+inbox indices.  See L<public-inbox-index(1)>.
+
+=back
+
+=head1 FILES
+
+For internal indices, the Xapian DB is stored in
+C<$GIT_DIR/public-inbox-cindex>.
+
+External indices are stored wherever L</-d> EXTDIR points.
+
+=head1 CONFIGURATION
+
+=over 8
+
+=item publicinbox.indexMaxSize
+
+=item publicinbox.indexBatchSize
+
+These configuration knobs affect the coderepo index the same way
+they affect inbox indices.  See L<public-inbox-index(1)>.
+
+=back
+
+=head1 ENVIRONMENT
+
+=over 8
+
+=item PI_CONFIG
+
+Used to override the default "~/.public-inbox/config" value.
+
+=item XAPIAN_FLUSH_THRESHOLD
+
+The number of documents to update before committing changes to
+disk.  This environment is handled directly by Xapian, refer to
+Xapian API documentation for more details.
+
+Use C<publicinbox.indexBatchSize> instead.
+
+=back
+
+=head1 UPGRADING
+
+Occasionally, public-inbox will update it's schema version and
+require a full reindex by running this command with L</--reindex>.
+
+=head1 CONTACT
+
+Feedback welcome via plain-text mail to L<mailto:meta@public-inbox.org>
+
+The mail archives are hosted at L<https://public-inbox.org/meta/> and
+L<http://4uok3hntl7oi7b4uf4rtfwefqeexfzil2w6kgk2jn5z2f764irre7byd.onion/meta/>
+
+=head1 COPYRIGHT
+
+Copyright all contributors L<mailto:meta@public-inbox.org>
+
+License: AGPL-3.0+ L<https://www.gnu.org/licenses/agpl-3.0.txt>
+
+=head1 SEE ALSO
+
+L<public-inbox-index(1)>
diff --git a/MANIFEST b/MANIFEST
index 44eaa497..1001ca08 100644
--- a/MANIFEST
+++ b/MANIFEST
@@ -67,6 +67,7 @@ Documentation/lei.pod
 Documentation/lei_design_notes.txt
 Documentation/marketing.txt
 Documentation/mknews.perl
+Documentation/public-inbox-cindex.pod
 Documentation/public-inbox-clone.pod
 Documentation/public-inbox-compact.pod
 Documentation/public-inbox-config.pod

^ permalink raw reply related	[relevance 4%]

Results 1-4 of 4 | reverse | options above
-- pct% links below jump to the message on this page, permalinks otherwise --
2023-08-06  2:31  7% [PATCH 0/2] doc updates for -clone + -cindex Eric Wong
2023-08-06  2:31  4% ` [PATCH 1/2] doc: add manpage for -cindex Eric Wong
2023-08-06  4:10  5%   ` Kyle Meyer
2023-08-16  2:12  5%     ` Eric Wong

Code repositories for project(s) associated with this public inbox

	https://80x24.org/public-inbox.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).