Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我可以在 xquery 中将文件从一个目录物理移动到另一个目录吗?
不,没有 MarkLogic 功能可以从文件系统中删除文件。您可以做的最接近的是xdmp:save空文本或二进制文件,覆盖任何现有文件。
xdmp:save
我假设您的意思是文档(而不是文件)。
MarkLogic 使用MVCC。您必须复制和删除 - 如果您要“移动”的文档数量不大,您可以在单个事务中执行此操作。