[MarkLogic Dev General] Deleting a directory does not delete the documents in the directory?

VSedov at wiley.ru VSedov at wiley.ru
Fri Feb 16 06:05:43 PST 2007


Really?

dev_guide.pdf

4.2 Collections Versus Directories
Collections are used to organize documents in a database. You can also use 
directories to organize
documents in a database. The key differences in using collections to 
organize documents versus
using directories are:
• Collections do not require member documents to conform to any URI 
patterns. They are
not hierarchical; directories are. Any document can belong to any 
collection, and any
document can also belong to multiple collections.
• You can delete all documents in a collection with the 
xdmp:collection-delete() function.
Deleting a directory does not delete the documents in the directory 
(unless you use a
WebDAV client to delete a directory).
• You cannot set properties on a collection; you can on a directory.
Except for the fact that you can use both collections and directories to 
organize documents,
collections are unrelated to directories. For details on directories, see 
“Properties Documents and
Directories” on page 98.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://xqzone.marklogic.com/pipermail/general/attachments/20070216/118cc8fd/attachment.html


More information about the General mailing list