MCPcopy Create free account
hub / github.com/apache/solr / doFilesMode

Method doFilesMode

solr/core/src/java/org/apache/solr/cli/PostTool.java:351–374  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

349 }
350
351 private void doFilesMode() throws IOException {
352 currentDepth = 0;
353
354 info(
355 "Posting files to [base] url "
356 + solrUpdateUrl
357 + (!auto ? " using content-type " + (type == null ? DEFAULT_CONTENT_TYPE : type) : "")
358 + "...");
359 if (auto) {
360 info("Entering auto mode. File endings considered are " + fileTypes);
361 }
362 if (recursive > 0) {
363 if (recursionPossible(args)) {
364 info("Entering recursive mode, max depth=" + recursive + ", delay=" + delay + "s");
365 }
366 }
367 fileFilter = getFileFilterFromFileTypes(fileTypes);
368 int numFilesPosted = postFiles(args, 0, out, type);
369 if (dryRun) {
370 info("Dry run complete. " + numFilesPosted + " would have been indexed.");
371 } else {
372 info(numFilesPosted + " files indexed.");
373 }
374 }
375
376 private void doArgsMode(String[] args) {
377 info("POSTing args to " + solrUpdateUrl + "...");

Callers 1

executeMethod · 0.95

Calls 4

infoMethod · 0.95
recursionPossibleMethod · 0.95
postFilesMethod · 0.95

Tested by

no test coverage detected