1 <article xmlns='http://docbook.org/ns/docbook'>
2 <title>koha-elasticsearch</title>
4 <productname>Koha</productname> is the first free software library automation package.
6 <orgname>The Koha Community</orgname>
7 <uri>http://koha-community.org/</uri>
11 <refentry xml:id="koha-elasticsearch">
14 <refentrytitle>koha-elasticsearch</refentrytitle>
15 <manvolnum>8</manvolnum>
19 <refname>koha-elasticsearch</refname>
20 <refpurpose>Manage Elasticsearch-related tasks for Koha instances.</refpurpose>
21 <refclass>UNIX/Linux</refclass>
24 <refsect1><title>Description</title>
25 <para>Provides Elasticsearch-related tasks for Koha instances. An action needs to
32 <command>koha-elasticsearch --rebuild</command>
33 <arg>-d|--delete</arg>
35 <arg>-b|--biblios</arg>
36 <arg>-a|--authorities</arg>
37 <arg>-v|--verbose</arg>
38 <arg>-c n|--commit n</arg>
39 <arg>-v|--verbose</arg>
40 <arg choice="req" rep="repeat"><replaceable>instancename</replaceable></arg>
44 <refsect1><title>Actions</title>
47 <term><option>--rebuild</option></term>
49 <para>Makes <refname>koha-elasticsearch</refname> rebuild Elasticsearch indexes based on the parameters.
50 By default it rebuilds both authority and bibliographic records. This behaviour can be controlled
51 with the <option>-a</option> and <option>-b</option> parameters.
58 <refsect1><title>Options</title>
61 <term><option>-d</option></term>
63 <para>In conjunction with <option>--rebuild</option>, it deletes existing indexes before reindexing.</para>
67 <term><option>-r</option></term>
69 <para>In conjunction with <option>--rebuild</option>, it reloads the settings from the Elasticsearch
70 files set in koha-conf.xml . This option implies delete.</para>
74 <term><option>-a</option></term>
76 <para>In conjunction with <option>--rebuild</option>, it triggers authority record reindexing.</para>
80 <term><option>-b</option></term>
82 <para>In conjunction with <option>--rebuild</option> it triggers bibliographic record reindexing.</para>
86 <term><option>-c, --commit</option></term>
88 <para>Specifies how many records will be batched up before they are added to Elasticsearch (default: 5000).
89 Higher values lead to better performance, but take more RAM.</para>
93 <term><option>-v, --verbose</option></term>
95 <para>Be verbose. Useful for debugging indexing problems.</para>
99 <term><option>-h, --help</option></term>
101 <para>Display usage information.</para>
107 <refsect1><title>See also</title>
108 <simplelist type="inline">
109 <member><command>koha-rebuild-zebra(8)</command></member>