|
Lines 42-48
Options:
Link Here
|
| 42 |
--reset|-r Reset elasticsearch mappings from file. |
42 |
--reset|-r Reset elasticsearch mappings from file. |
| 43 |
--authorities|-a Only run process for authorities. |
43 |
--authorities|-a Only run process for authorities. |
| 44 |
--biblios|-b Only run process for biblios. |
44 |
--biblios|-b Only run process for biblios. |
| 45 |
-c|--commit n Specify how many records will be batched up before |
45 |
-c|--confirm n Specify how many records will be batched up before |
| 46 |
they're added to Elasticsearch (default: 5000). |
46 |
they're added to Elasticsearch (default: 5000). |
| 47 |
-p|--processes n Specify the number of parallel processes to use |
47 |
-p|--processes n Specify the number of parallel processes to use |
| 48 |
for indexing. |
48 |
for indexing. |
|
Lines 90-96
run_rebuild_elasticsearch()
Link Here
|
| 90 |
if [ "${clo_commit_size}" -gt 0 ] 2>/dev/null; then |
90 |
if [ "${clo_commit_size}" -gt 0 ] 2>/dev/null; then |
| 91 |
commit_size=${clo_commit_size} |
91 |
commit_size=${clo_commit_size} |
| 92 |
fi |
92 |
fi |
| 93 |
rebuild_opts="--commit ${commit_size}" |
93 |
rebuild_opts="--confirm ${commit_size}" |
| 94 |
|
94 |
|
| 95 |
if [ "${clo_processes}" -gt 0 ] 2>/dev/null; then |
95 |
if [ "${clo_processes}" -gt 0 ] 2>/dev/null; then |
| 96 |
processes=${clo_processes} |
96 |
processes=${clo_processes} |
|
Lines 160-166
while [ -n "$*" ]; do
Link Here
|
| 160 |
-a|--authorities) |
160 |
-a|--authorities) |
| 161 |
toggle_authorities_only |
161 |
toggle_authorities_only |
| 162 |
;; |
162 |
;; |
| 163 |
-c|--commit) |
163 |
-c|--confirm) |
| 164 |
clo_commit_size="$2" ; shift |
164 |
clo_commit_size="$2" ; shift |
| 165 |
;; |
165 |
;; |
| 166 |
-p|--processes) |
166 |
-p|--processes) |