You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
reindex reindex solr for given stores (see "stores" param)
87
-
--stores <stores> reindex given stores (can be store id, store code, comma seperated. Or "all".) If not set, reindex all stores.
137
+
reindex Reindex solr for given stores (see "stores" param)
138
+
--stores <stores> Reindex given stores (can be store id, store code, comma seperated. Or "all".) If not set, reindex all stores.
88
139
--emptyindex Force emptying the solr index for the given store(s). If not set, configured value is used.
89
140
--noemptyindex Force not emptying the solr index for the given store(s). If not set, configured value is used.
90
141
--types <types> Restrict indexing to certain entity types, i.e. "product", "category" or "page" (comma separated). Or "all". If not set, reindex products.
142
+
--slice <number>/<total_number>, i.e. "1/5" or "2/5". Use this if you want to index only a part of the products, i.e. for letting indexing run in parallel (for products only).
143
+
--use-swap-core Use swap core for indexing instead of live core (only if configured correctly). This is useful when using slices (see above), it's not needed otherwise.
144
+
145
+
clear Clear solr product index for given stores (see "stores" param)
146
+
147
+
swap-cores Swap cores. This is useful when using slices (see above) after indexing with the "--use-swap-core" param, it's not needed otherwise. See "stores" param.
148
+
91
149
help This help
92
150
93
151
USAGE;
@@ -149,6 +207,32 @@ protected function _useCmsIndexer()
if (!is_integer($sliceId) || !is_integer($totalNumberSlices)) {
227
+
thrownewInvalidArgumentException('The "slice" argument must be of format "1/5" or "20/20", only containing integer numbers before/after the slash.');
228
+
}
229
+
if ($totalNumberSlices < 2) {
230
+
thrownewInvalidArgumentException('The "slice" argument must be of format "1/5" or "20/20". The second number must be higher than 1.');
231
+
}
232
+
if ($sliceId < 1 || $sliceId > $totalNumberSlices) {
233
+
thrownewInvalidArgumentException('The "slice" argument must be of format "1/5" or "20/20". The first number is invalid, should be between 1 and the second number (including those).');
0 commit comments