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_filter
option 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_filter
or-document-selector
.-collection_filter
- export only the documents in the listed collections. You cannot use this option with-directory_filter
or-document_selector
.-document_selector
export only documents selected by the specified XPath expression. You cannot use this option with-directory_filter
or-collection_filter
. Use-path_namespace
to define namespace prefixes.