Re: [MarkLogic Dev General] how to save multiple documents to file system.

2018-05-10 Thread Damon Feldman
Hi, I believe you are saving both docs to the file-system with two separate calls. I suggest when staring (and even generally) to include the XQuery header: declare option xdmp:mapping "false";. Which will not treat a sequence as an instruction to call a function multiple times. That’s

[MarkLogic Dev General] how to save multiple documents to file system.

2018-05-10 Thread Ly CafeSua
Hello all, I am new to Marklogic and would like to learn how to save document nodes to server. I have a sample code but it always save a last record has "SP0002". How can I save both records. Thanks in advance. xquery version "1.0-ml"; declare namespace html =

Re: [MarkLogic Dev General] collection function searching

2018-05-10 Thread Erik Hennum
Hi, Paul: Syntactically, the XPath expressions * retrieve a sequence of documents from the database * extract a sequence of nodes from the sequence of documents (in case 2) * filter to produce a final sequence by applying the predicate to each item The engine tries to optimize XPath

[MarkLogic Dev General] unsubscribe

2018-05-10 Thread Philip Fennell
___ General mailing list General@developer.marklogic.com Manage your subscription at: http://developer.marklogic.com/mailman/listinfo/general

Re: [MarkLogic Dev General] How to specify Collection along with the document URI when inserting a marklogic document

2018-05-10 Thread Bharath Umesh
Thanks Shabana. That was very helpful. On Thu, May 10, 2018 at 2:48 PM, shabana khan wrote: > Hi Bharath, > > You can add document and collection in single step itself. If you look at > the syntax of xdmp.documentInsert(), you will seen that you can pass > collection in

Re: [MarkLogic Dev General] How to specify Collection along with the document URI when inserting a marklogic document

2018-05-10 Thread shabana khan
Hi Bharath, You can add document and collection in single step itself. If you look at the syntax of xdmp.documentInsert(), you will seen that you can pass collection in options node itself : declareUpdate(); xdmp.documentInsert( 'document URI', document, { collections : 'name

Re: [MarkLogic Dev General] How to specify Collection along with the document URI when inserting a marklogic document

2018-05-10 Thread Bharath Umesh
Thanks, Christopher. I was able to add document and add this document to its collection in 2 steps. declareUpdate(); xdmp.documentInsert('", ""); Is this correct? Thanks, Bharath On Wed, May 9, 2018 at 6:08 PM, Christopher Hamlin wrote: > The second and third examples