View | Details | Raw Unified | Return to bug 23137
Collapse All | Expand All

(-)a/debian/scripts/koha-elasticsearch (-1 / +16 lines)
Lines 38-43 Actions: Link Here
38
    --rebuild         Trigger a rebuild process
38
    --rebuild         Trigger a rebuild process
39
39
40
Options:
40
Options:
41
    --delete|-d       Delete elasticsearch index before reindexing.
42
    --reset|-r        Reset elasticsearch mappings from file.
41
    --authorities|-a  Only run process for authorities.
43
    --authorities|-a  Only run process for authorities.
42
    --biblios|-b      Only run process for biblios.
44
    --biblios|-b      Only run process for biblios.
43
    -c|--commit n     Specify how many records will be batched up before
45
    -c|--commit n     Specify how many records will be batched up before
Lines 98-103 run_rebuild_elasticsearch() Link Here
98
    fi
100
    fi
99
    rebuild_opts="--processes ${processes}"
101
    rebuild_opts="--processes ${processes}"
100
102
103
    if [ "${delete}" = "yes" ]; then
104
        rebuild_opts="${rebuild_opts} -d"
105
    fi
106
107
    if [ "${reset}" = "yes" ]; then
108
        rebuild_opts="${rebuild_opts} -r"
109
    fi
110
101
    if [ "${biblios}" = "yes" ]; then
111
    if [ "${biblios}" = "yes" ]; then
102
        rebuild_opts="${rebuild_opts} -b"
112
        rebuild_opts="${rebuild_opts} -b"
103
    fi
113
    fi
Lines 135-140 while [ -n "$*" ]; do Link Here
135
        -h|--help)
145
        -h|--help)
136
            usage ; exit 0
146
            usage ; exit 0
137
            ;;
147
            ;;
148
        -d|--delete)
149
            delete="yes"
150
            ;;
151
        -r|--reset)
152
            reset="yes"
153
            ;;
138
        -b|--biblios)
154
        -b|--biblios)
139
            toggle_biblios_only
155
            toggle_biblios_only
140
            ;;
156
            ;;
141
- 

Return to bug 23137