In marklogic, using MLCP can we read /export/import/copy data based on a condition?
Example : read only files with students subject element has only maths
In marklogic, using MLCP can we read /export/import/copy data based on a condition?
Example : read only files with students subject element has only maths
Copyright © 2021 Jogjafile Inc.
Yes, you can apply the
-query_filteroption to restrict documents to those matching the filter query.https://docs.marklogic.com/guide/mlcp/export#id_66898
Controlling What is Exported, Copied, or Extracted
-query_filter- export/copy only documents matched by the specified cts query. You can use this option alone or in combination with a directory, collection or document selector filter.-directory_filter- export only the documents in the listed database directories. You cannot use this option with-collection_filteror-document-selector.-collection_filter- export only the documents in the listed collections. You cannot use this option with-directory_filteror-document_selector.-document_selectorexport only documents selected by the specified XPath expression. You cannot use this option with-directory_filteror-collection_filter. Use-path_namespaceto define namespace prefixes.