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> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
This commit is contained in:
parent
9fa6bb6401
commit
f6913e74c3
|
|
@ -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
|
||||
;;
|
||||
|
|
|
|||
Loading…
Reference in New Issue