Bugzilla – Attachment 103648 Details for
Bug 23137
Add a command line tool to reset elasticsearch mappings
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 23137: Add reset and delete to koha-elasticsearch
Bug-23137-Add-reset-and-delete-to-koha-elasticsear.patch (text/plain), 1.88 KB, created by
Jonathan Druart
on 2020-04-24 11:05:48 UTC
(
hide
)
Description:
Bug 23137: Add reset and delete to koha-elasticsearch
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2020-04-24 11:05:48 UTC
Size:
1.88 KB
patch
obsolete
>From 679add364b1232a07fc2cab45c1d52a2920cdf2e Mon Sep 17 00:00:00 2001 >From: Nick Clemens <nick@bywatersolutions.com> >Date: Thu, 19 Mar 2020 16:37:24 +0000 >Subject: [PATCH] Bug 23137: Add reset and delete to koha-elasticsearch > >Same as previous test, but use the script to run the reindex >reset_all to update the scripts or use >misc4dev/cp_debian_files.pl > >sudo koha-elasticsearch --rebuild -r -v > >Signed-off-by: Andrew Fuerste-Henry <andrew@bywatersolutions.com> > >Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >--- > debian/scripts/koha-elasticsearch | 16 ++++++++++++++++ > 1 file changed, 16 insertions(+) > >diff --git a/debian/scripts/koha-elasticsearch b/debian/scripts/koha-elasticsearch >index 48ad23c722..70a24d243b 100755 >--- a/debian/scripts/koha-elasticsearch >+++ b/debian/scripts/koha-elasticsearch >@@ -38,6 +38,8 @@ Actions: > --rebuild Trigger a rebuild process > > Options: >+ --delete|-d Delete elasticsearch index before reindexing. >+ --reset|-r Reset elasticsearch mappings from file. > --authorities|-a Only run process for authorities. > --biblios|-b Only run process for biblios. > -c|--commit n Specify how many records will be batched up before >@@ -98,6 +100,14 @@ run_rebuild_elasticsearch() > fi > rebuild_opts="--processes ${processes}" > >+ if [ "${delete}" = "yes" ]; then >+ rebuild_opts="${rebuild_opts} -d" >+ fi >+ >+ if [ "${reset}" = "yes" ]; then >+ rebuild_opts="${rebuild_opts} -r" >+ fi >+ > if [ "${biblios}" = "yes" ]; then > rebuild_opts="${rebuild_opts} -b" > fi >@@ -135,6 +145,12 @@ while [ -n "$*" ]; do > -h|--help) > usage ; exit 0 > ;; >+ -d|--delete) >+ delete="yes" >+ ;; >+ -r|--reset) >+ reset="yes" >+ ;; > -b|--biblios) > toggle_biblios_only > ;; >-- >2.20.1
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 23137
:
101051
|
101052
|
102354
|
102355
|
102918
|
103014
|
103640
|
103647
| 103648 |
103649
|
103650