Skip to content

Commit a12d6fe

Browse files
committed
Changes based on feedback; added it to update instructions
1 parent 0a45373 commit a12d6fe

File tree

2 files changed

+24
-4
lines changed

2 files changed

+24
-4
lines changed

install/elasticsearch.rst

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,7 @@ Build/rebuild the searchindex
289289
not be shown in search results.
290290
- Consider specifying a number of CPU cores to be used for the rebuild
291291
(see example below).
292-
- If you just want to add a missing index, use the third command below.
292+
- If you just want to add a missing index, you find the commands below too.
293293

294294
Without specifying CPU cores:
295295

@@ -303,13 +303,18 @@ Build/rebuild the searchindex
303303
304304
$ sudo zammad run rake zammad:searchindex:rebuild[8]
305305
306-
Add a specific index with the command below. Replace ``Ticket`` with the one
307-
you want to add. If your database already holds data which has to be indexed,
308-
additionally use the second command:
306+
Add a specific index with the following command. Replace ``Ticket`` with the
307+
one you want to add:
309308

310309
.. code-block:: sh
311310
312311
$ zammad run rails r "SearchIndexBackend.create_object_index('Ticket')"
312+
313+
To index already existing data for this specific index, execute a reload of
314+
this index, replace ``Ticket`` here as well:
315+
316+
.. code-block:: sh
317+
313318
$ zammad run rails r "Ticket.search_index_reload"
314319
315320
Optional settings

install/update.rst

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,21 @@ using `Zammad hosting`_ for your and your customers' safety.
112112
# rebuilding the searchindex, as in the following example with 8 cores:
113113
$ zammad run rake zammad:searchindex:rebuild[8]
114114
115+
Add only a specific index with the following command. This is not
116+
needed if you already run a complete rebuild of the index. Replace
117+
``Ticket`` with the one you want to add:
118+
119+
.. code-block:: sh
120+
121+
$ zammad run rails r "SearchIndexBackend.create_object_index('Ticket')"
122+
123+
To index already existing data for this specific index, execute a
124+
reload of this index, replace ``Ticket`` here as well:
125+
126+
.. code-block:: sh
127+
128+
$ zammad run rails r "Ticket.search_index_reload"
129+
115130
Step 7: Log into Zammad
116131
Yes, that's it!
117132

0 commit comments

Comments
 (0)