Re: [MarkLogic Dev General] CPF pre-commit action?

2016-01-18 Thread Will Thompson
Geert, I hadn't considered that, but it would definitely achieve the desired behavior. Thanks for the suggestion. It would add a lot more complexity to the pipeline, but its sounds feasible. -Will > On Jan 15, 2016, at 1:38 PM, Geert Josten wrote: > > Have you

Re: [MarkLogic Dev General] JSON transformation problem

2016-01-18 Thread David Lee
When the XML has an associated schema, the type information for atomic values is used to choose the appropriate JSON output. In this case it appears your schema has a numeric type associated with and so its (correctly) converting to a JSON Numeric type. " Note that the second one treated

Re: [MarkLogic Dev General] Regarding error message display

2016-01-18 Thread Dave Cassel
You can unsubscribe at http://developer.marklogic.com/mailman/listinfo/general. -- Dave Cassel, @dmcassel Technical Community Manager MarkLogic Corporation http://developer.marklogic.com/ From:

[MarkLogic Dev General] cts:uris

2016-01-18 Thread Kapoor, Pragya
Hi, When I am querying the DB (uri lexicon enable) using cts:uris("/docs/"). I am getting uris starting from /docs/ which is correct , but why I am getting the below uris: /documents/Bilateral Form.031-csa.xml string /documents/Bilateral

Re: [MarkLogic Dev General] cts:uris

2016-01-18 Thread Ken Tune
Pragya Argument 1, $start is defined as below $start A starting value. Return only this value and following values. If the empty string, return all values. If the parameter is not in the lexicon, then it returns the values beginning with the next value. So cts:uris returns every uri that

Re: [MarkLogic Dev General] cts:uris

2016-01-18 Thread Rajamani.Marimuthu
HI Pragya, You can try with cts:uri-match("/doc/") instead of cts:uris() function. By Raja>>> From: general-boun...@developer.marklogic.com [mailto:general-boun...@developer.marklogic.com] On Behalf Of Ken Tune Sent: Monday, January 18, 2016 5:24 PM To: MarkLogic Developer Discussion Subject:

Re: [MarkLogic Dev General] CPF pre-commit action?

2016-01-18 Thread Geert Josten
Hi Will, It doesn¹t have to be that much more complicated. Just add a ¹staging¹ database, put your CPF there, and insert docs into that. Add one extra state and pipeline action at the end of your chain that copies the final docs into a different database, duplicating any properties.. It would

Re: [MarkLogic Dev General] CPF pre-commit action?

2016-01-18 Thread Danny Sokolsky
And if your properties are only being used by cpf, then the last step can skip moving over the properties to the prod database, thus saving you those fragments in that database. -Danny -Original Message- From: general-boun...@developer.marklogic.com

Re: [MarkLogic Dev General] Custom JSON objects

2016-01-18 Thread Kari Cowan
Just returning to this, I wanted to try constructing the map, but instead of getting back the values, I get back the document URI and path to the node. Not what I expected. What am I doing wrong? let $outputSimpleJSON:= for $doc in $search-this-partner/event (: there are 3 records in