|
Lines 42-47
Options:
Link Here
|
| 42 |
--biblios|-b Only run process for biblios. |
42 |
--biblios|-b Only run process for biblios. |
| 43 |
-c|--commit n Specify how many records will be batched up before |
43 |
-c|--commit n Specify how many records will be batched up before |
| 44 |
they're added to Elasticsearch (default: 5000). |
44 |
they're added to Elasticsearch (default: 5000). |
|
|
45 |
-p|--processes n Specify the number of parallel processes to use |
| 46 |
for indexing. |
| 45 |
--verbose|-v Be verbose. |
47 |
--verbose|-v Be verbose. |
| 46 |
--help|-h Print this help. |
48 |
--help|-h Print this help. |
| 47 |
|
49 |
|
|
Lines 91-96
run_rebuild_elasticsearch()
Link Here
|
| 91 |
fi |
93 |
fi |
| 92 |
rebuild_opts="--commit ${commit_size}" |
94 |
rebuild_opts="--commit ${commit_size}" |
| 93 |
|
95 |
|
|
|
96 |
if [ "${clo_processes}" > 0 ]; then |
| 97 |
processes=${clo_processes} |
| 98 |
fi |
| 99 |
rebuild_opts="--processes ${processes}" |
| 100 |
|
| 94 |
if [ "${biblios}" = "yes" ]; then |
101 |
if [ "${biblios}" = "yes" ]; then |
| 95 |
rebuild_opts="${rebuild_opts} -b" |
102 |
rebuild_opts="${rebuild_opts} -b" |
| 96 |
fi |
103 |
fi |
|
Lines 118-123
authorities="yes"
Link Here
|
| 118 |
biblios_only="no" |
125 |
biblios_only="no" |
| 119 |
authorities_only="no" |
126 |
authorities_only="no" |
| 120 |
commit_size=5000 |
127 |
commit_size=5000 |
|
|
128 |
processes=1 |
| 121 |
verbose="no" |
129 |
verbose="no" |
| 122 |
op="" |
130 |
op="" |
| 123 |
|
131 |
|
|
Lines 136-141
while [ -n "$*" ]; do
Link Here
|
| 136 |
-c|--commit) |
144 |
-c|--commit) |
| 137 |
clo_commit_size="$2" ; shift |
145 |
clo_commit_size="$2" ; shift |
| 138 |
;; |
146 |
;; |
|
|
147 |
-p|--processes) |
| 148 |
clo_processes="$2" ; shift |
| 149 |
;; |
| 139 |
--rebuild) |
150 |
--rebuild) |
| 140 |
set_action "rebuild" |
151 |
set_action "rebuild" |
| 141 |
;; |
152 |
;; |
| 142 |
- |
|
|