public void setMaxFilesToConsider(int maxFilesToConsider) {
        this.maxFilesToConsider = maxFilesToConsider;
    }
Maximum number of files to consider.  A file is considered
whether or not the DocumentSelector selects a document.
<p/>
If {@link #maxFilesToConsider} &lt; 0 (default), then this crawler
will add all documents.

@param maxFilesToConsider maximum number of files to consider adding to the queue
tika-batch/src/main/java/org/apache/tika/batch/FileResourceCrawler.java