Bug 19462: Add koha-elasticsearch documentation
authorTomas Cohen Arazi <tomascohen@theke.io>
Fri, 13 Oct 2017 18:16:59 +0000 (15:16 -0300)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Fri, 27 Oct 2017 17:10:31 +0000 (14:10 -0300)
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>

Signed-off-by: Mark Tompsett <mtompset@hotmail.com>

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>

debian/docs/koha-common.xml
debian/docs/koha-elasticsearch.xml [new file with mode: 0644]

index 2790341..f14f750 100644 (file)
     </variablelist>
     </refsect2>
 
+    <refsect2>
+      <title>Elasticsearch-related</title>
+        <variablelist>
+          <varlistentry>
+            <term><option>koha-elasticsearch</option></term>
+            <listitem>
+              <para>Manage Elasticsearch-related tasks for Koha instances.</para>
+            </listitem>
+          </varlistentry>
+        </variablelist>
+    </refsect2>
+
     <refsect2><title>E-mail</title>
     <variablelist>
 
diff --git a/debian/docs/koha-elasticsearch.xml b/debian/docs/koha-elasticsearch.xml
new file mode 100644 (file)
index 0000000..8b25087
--- /dev/null
@@ -0,0 +1,100 @@
+<article xmlns='http://docbook.org/ns/docbook'>
+<title>koha-elasticsearch</title>
+<info>
+<productname>Koha</productname> is the first free software library automation package.
+<author>
+  <orgname>The Koha Community</orgname>
+  <uri>http://koha-community.org/</uri>
+</author>
+</info>
+
+<refentry xml:id="koha-elasticsearch">
+
+  <refmeta>
+    <refentrytitle>koha-elasticsearch</refentrytitle>
+    <manvolnum>8</manvolnum>
+  </refmeta>
+
+  <refnamediv>
+    <refname>koha-elasticsearch</refname>
+    <refpurpose>Manage Elasticsearch-related tasks for Koha instances.</refpurpose>
+    <refclass>UNIX/Linux</refclass>
+  </refnamediv>
+
+  <refsect1><title>Description</title>
+  <para>Provides Elasticsearch-related tasks for Koha instances. An action needs to
+        be passed.</para>
+  </refsect1>
+
+
+  <refsynopsisdiv>
+    <cmdsynopsis>
+      <command>koha-elasticsearch --rebuild</command>
+      <arg>-b|--biblios</arg>
+      <arg>-a|--authorities</arg>
+      <arg>-v|--verbose</arg>
+      <arg>-c n|--commit n</arg>
+      <arg>-v|--verbose</arg>
+      <arg choice="req" rep="repeat"><replaceable>instancename</replaceable></arg>
+    </cmdsynopsis>
+  </refsynopsisdiv>
+
+  <refsect1><title>Actions</title>
+  <variablelist>
+    <varlistentry>
+      <term><option>--rebuild</option></term>
+      <listitem>
+        <para>Makes <refname>koha-elasticsearch</refname> rebuild Elasticsearch indexes based on the parameters.
+              By default it rebuilds both authority and bibliographic records. This behaviour can be controlled
+              with the <option>-a</option> and <option>-b</option> parameters.
+        </para>
+      </listitem>
+    </varlistentry>
+  </variablelist>
+  </refsect1>
+
+  <refsect1><title>Options</title>
+  <variablelist>
+    <varlistentry>
+      <term><option>-a</option></term>
+      <listitem>
+        <para>In conjunction with <option>--rebuild</option>, it triggers authority record reindexing.</para>
+      </listitem>
+    </varlistentry>
+    <varlistentry>
+      <term><option>-b</option></term>
+      <listitem>
+        <para>In conjunction with <option>--rebuild</option> it triggers bibliographic record reindexing.</para>
+      </listitem>
+    </varlistentry>
+    <varlistentry>
+      <term><option>-c, --commit</option></term>
+      <listitem>
+        <para>Specifies how many records will be batched up before they are added to Elasticsearch (default: 5000).
+              Higher values lead to better performance, but take more RAM.</para>
+      </listitem>
+    </varlistentry>
+    <varlistentry>
+      <term><option>-v, --verbose</option></term>
+      <listitem>
+        <para>Be verbose. Useful for debugging indexing problems.</para>
+      </listitem>
+    </varlistentry>
+    <varlistentry>
+      <term><option>-h, --help</option></term>
+      <listitem>
+        <para>Display usage information.</para>
+      </listitem>
+    </varlistentry>
+  </variablelist>
+  </refsect1>
+
+  <refsect1><title>See also</title>
+  <simplelist type="inline">
+    <member><command>koha-rebuild-zebra(8)</command></member>
+  </simplelist>
+  </refsect1>
+
+</refentry>
+
+</article>