thomasmueller commented on code in PR #1267:
URL: https://github.com/apache/jackrabbit-oak/pull/1267#discussion_r1456010261


##########
oak-run-commons/src/main/java/org/apache/jackrabbit/oak/index/indexer/document/flatfile/pipelined/PipelinedMongoDownloadTask.java:
##########
@@ -129,6 +133,117 @@ public long getDocumentsDownloaded() {
 
     private static final String THREAD_NAME = "mongo-dump";
 
+    /**
+     * Creates the filter to be used in the Mongo query
+     *
+     * @param mongoFilterPaths         The paths to be included/excluded in 
the filter. These define subtrees to be included or excluded.
+     *                                 (see {@link MongoFilterPaths} for 
details)
+     * @param customExcludedPathsRegex A custom regex pattern to exclude paths 
from the download.

Review Comment:
   I would add:
   
       This is typically a _suffix_, for example 
"/metadata.xml$|/renditions/.*.jpg$".
       To exclude subtrees such as /content/abc, use mongoFilterPaths instead.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscr...@jackrabbit.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to