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

(-)a/debian/koha-common.default (+23 lines)
Lines 34-37 INDEXER_TIMEOUT=5 Link Here
34
#
34
#
35
# INDEXER_PARAMS=""
35
# INDEXER_PARAMS=""
36
36
37
# Elasticsearch default options. Specifying the command line options to
38
# koha-elasticsearch will override these
39
40
# Should biblios be indexed by default?
41
ES_INDEX_BIBLIOS="yes"
42
# Should authorities be indexed by default?
43
ES_INDEX_AUTHORITIES="yes"
44
# How many records should be batched for committing to elasticsearch at one time. You
45
# might want to decrease this if you're having issues with memory.
46
# Equivalent to '--commit'
47
ES_COMMIT_SIZE=5000
48
# Now many parallel processes to use for indexing. If you have CPU
49
# cores to spare, this might be worth increasing.
50
# Equivalent to '--processes'
51
ES_NUMBER_OF_PROCESSES=1
52
# Should the output be verbose by default?
53
# Equivalent to '--verbose'
54
ES_VERBOSE="no"
55
# A string that's supplied as a "where" query that can limit the records being idexed.
56
# You probably don't want to use this by default expect in some sort of special case.
57
# Equivalent to '--where'
58
#ES_WHERE_QUERY_SQL=""
59
37
## End of general koha-common default options
60
## End of general koha-common default options
(-)a/debian/scripts/koha-elasticsearch (-8 / +16 lines)
Lines 131-146 run_rebuild_elasticsearch() Link Here
131
    fi
131
    fi
132
}
132
}
133
133
134
# Default parameters
134
# Default parameters from koha-common.default
135
biblios="yes"
135
biblios=$ES_INDEX_BIBLIOS         # the 'only' variants are skipped because they don't actually control
136
authorities="yes"
136
authorities=$ES_INDEX_AUTHORITIES # anything and are just for setting stuff internally.
137
commit_size=$ES_COMMIT_SIZE
138
processes=$ES_NUMBER_OF_PROCESSES
139
verbose=$ES_VERBOSE
140
where=$ES_WHERE_QUERY_SQL
141
142
# Default parameters if all else fails
143
: ${biblios:="yes"}
144
: ${authorities:="yes"}
145
: ${commit_size:=5000}
146
: ${processes:=1}
147
: ${verbose:="no"}
148
: ${where:=""}
149
137
biblios_only="no"
150
biblios_only="no"
138
authorities_only="no"
151
authorities_only="no"
139
commit_size=5000
140
processes=1
141
verbose="no"
142
op=""
152
op=""
143
where=""
144
153
145
# Read parameters
154
# Read parameters
146
while [ -n "$*" ]; do
155
while [ -n "$*" ]; do
147
- 

Return to bug 36550