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
--emptyindex Force emptying the solr index for the given store(s). If not set, configured value is used.
146
158
--noemptyindex Force not emptying the solr index for the given store(s). If not set, configured value is used.
147
159
--types <types> Restrict indexing to certain entity types, i.e. "product", "category" or "page" (comma separated). Or "all". If not set, reindex products.
148
-
--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).
149
-
--use_swap_core Use swap core for indexing instead of live solr core (only if configured correctly) (for products only). This is useful if using slices (see above), it's not needed otherwise.
160
+
161
+
reindex_slice Reindex solr for given stores (see "stores" param). Use this if you want to index only a part of the products, i.e. for letting indexing run in parallel (for products only).
162
+
--slice <number>/<total_number>, i.e. "1/5" or "2/5".
163
+
--stores <stores> Reindex given stores (can be store id, store code, comma seperated. Or "all".) If not set, reindex all stores.
164
+
--use_swap_core Use swap core for indexing instead of live solr core (only if configured correctly).
150
165
151
166
clear Clear solr product index for given stores (see "stores" param and "use_swap_core" param)
167
+
--stores <stores> Reindex given stores (can be store id, store code, comma seperated. Or "all".) If not set, reindex all stores.
168
+
--use_swap_core Use swap core for clearing instead of live solr core (only if configured correctly).
152
169
153
-
swap-cores Swap cores. This is useful if using slices (see above) after indexing with the "--use_swap_core" param; it's not needed otherwise. See "stores" param.
170
+
swap_cores Swap cores. This is useful if using slices (see above) after indexing with the "--use_swap_core" param; it's not needed otherwise.
171
+
--stores <stores> Reindex given stores (can be store id, store code, comma seperated. Or "all".) If not set, reindex all stores.
154
172
155
173
help This help
156
174
@@ -221,7 +239,7 @@ protected function _useCmsIndexer()
221
239
protectedfunction_checkSliceArgument($sliceArg)
222
240
{
223
241
if (!strlen($sliceArg)) {
224
-
return;
242
+
thrownewInvalidArgumentException('The "slice" argument must be given.');
225
243
}
226
244
if (strpos($sliceArg, '/') < 1) {
227
245
thrownewInvalidArgumentException('The "slice" argument must be of format "1/5" or "20/20"');
0 commit comments