MLCP可以根据条件读取输入吗
Can MLCP read input based on a condition
在 marklogic 中,使用 MLCP 我们可以根据条件读取 /export/import/copy 数据吗?
示例:包含学生主题元素的只读文件只有数学
是的,您可以应用 -query_filter
选项将文档限制为与筛选查询匹配的文档。
https://docs.marklogic.com/guide/mlcp/export#id_66898
The -query_filter
option accepts a serialized XML cts:query or JSON cts.query as its value.
Controlling What is Exported, Copied, or Extracted
By default, mlcp exports all documents or all documents and metadata in the database, depending on whether you are exporting in document or archive format or copying the database. Several command line options are available to enable customization.
-query_filter
- export/copy 仅与指定的 cts 查询匹配的文档。您可以单独使用此选项,也可以将其与目录、集合或文档选择器过滤器结合使用。
-directory_filter
- 仅导出列出的数据库目录中的文档。您不能将此选项与 -collection_filter
或 -document-selector
一起使用。
-collection_filter
- 仅导出列出的集合中的文档。您不能将此选项与 -directory_filter
或 -document_selector
一起使用。
-document_selector
仅导出由指定的 XPath 表达式选择的文档。您不能将此选项与 -directory_filter
或 -collection_filter
一起使用。使用 -path_namespace
定义名称空间前缀。
在 marklogic 中,使用 MLCP 我们可以根据条件读取 /export/import/copy 数据吗?
示例:包含学生主题元素的只读文件只有数学
是的,您可以应用 -query_filter
选项将文档限制为与筛选查询匹配的文档。
https://docs.marklogic.com/guide/mlcp/export#id_66898
The
-query_filter
option accepts a serialized XML cts:query or JSON cts.query as its value.
Controlling What is Exported, Copied, or Extracted
By default, mlcp exports all documents or all documents and metadata in the database, depending on whether you are exporting in document or archive format or copying the database. Several command line options are available to enable customization.
-query_filter
- export/copy 仅与指定的 cts 查询匹配的文档。您可以单独使用此选项,也可以将其与目录、集合或文档选择器过滤器结合使用。-directory_filter
- 仅导出列出的数据库目录中的文档。您不能将此选项与-collection_filter
或-document-selector
一起使用。-collection_filter
- 仅导出列出的集合中的文档。您不能将此选项与-directory_filter
或-document_selector
一起使用。-document_selector
仅导出由指定的 XPath 表达式选择的文档。您不能将此选项与-directory_filter
或-collection_filter
一起使用。使用-path_namespace
定义名称空间前缀。