Thnx, this is helpful.
~Gurbeer
-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Gary Vidal
Sent: Tuesday, August 20, 2013 12:38 PM
To: [email protected]
Subject: [MarkLogic Dev General] xdmp:filesystem-file-exists -- Any
Gurbeer,
You can use xdmp:exists(fn:doc("/yourfile")) or fn:doc-available('/your-file')
if you want to confirm a document exists in the database. It will resolve from
index if you have uri index turned on. If you need to check the existence of
multiple documents, then you can simulate the check similar to something like
this.
cts:uris((),(),cts:document-query($list-of-uris))[fn:not(. = $list-of-uris)]
Regards,
Gary Vdial
_______________________________________________
General mailing list
[email protected]
http://developer.marklogic.com/mailman/listinfo/general
--------------------------------------------------------------------------------
NOTICE: Morgan Stanley is not acting as a municipal advisor and the opinions or
views contained herein are not intended to be, and do not constitute, advice
within the meaning of Section 975 of the Dodd-Frank Wall Street Reform and
Consumer Protection Act. If you have received this communication in error,
please destroy all electronic and paper copies and notify the sender
immediately. Mistransmission is not intended to waive confidentiality or
privilege. Morgan Stanley reserves the right, to the extent permitted under
applicable law, to monitor electronic communications. This message is subject
to terms available at the following link:
http://www.morganstanley.com/disclaimers. If you cannot access these links,
please notify us by reply message and we will send the contents to you. By
messaging with Morgan Stanley you consent to the foregoing.
_______________________________________________
General mailing list
[email protected]
http://developer.marklogic.com/mailman/listinfo/general