Re: [MarkLogic Dev General] MLCP Error Return

2017-06-16 Thread Hans Hübner
Hi, I would like to express our interest in seeing this be fixed as well. Having to parse mlcp's output to determine whether it failed is rather brittle. What is MarkLogic's approach to robust automation of processes that involve mlcp? Thanks, Hans On Fri, May 12, 2017 at 2:33 PM, Timothy Pearc

Re: [MarkLogic Dev General] Accessing properties of in-memory JS object in XQuery

2017-06-16 Thread Erik Hennum
Hi, Florent: Much the way JavaScript objects turn into json:object values in XQuery, JavaScript arrays turn into json:array values in XQuery. When appropriate, you can use json:array-values() to convert a json:array value to a sequence. Hoping that helps, Erik Hennum ___

[MarkLogic Dev General] cts:element-value-match for integers

2017-06-16 Thread Oleksii Segeda
Hi everyone, Can someone explain how does cts:element-value-match work with integer indexes? I cannot pass a string as a second argument, so it's unclear how to do a wildcarded search. Ultimate goal is to find 2000 and 200, if user typed 200. I understand that I can create an additional string

Re: [MarkLogic Dev General] Accessing properties of in-memory JS object in XQuery

2017-06-16 Thread Florent Georges
Hi Geert, I was mot expecting Europe to still answer at this time, but that was counting without you ;-) Thank you, it works indeed as a charm. But it seems I oversimplified my example. The problem actually comes from the fact that the value is an array of objecst, and just iterating over it li

Re: [MarkLogic Dev General] Accessing properties of in-memory JS object in XQuery

2017-06-16 Thread Geert Josten
It is a json:object (the map:map specialization).. Try: xdmp.xqueryEval( 'declare variable $obj external; map:get($obj, "name")', { obj: {name: 'name', title: 'title' }}); Cheers, Geert On 6/16/17, 9:27 PM, "general-boun...@developer.marklogic.com on behalf of Florent Georges"

Re: [MarkLogic Dev General] Announcement: IntelliJ XQuery plugin with live MarkLogic debugging

2017-06-16 Thread Dave Cassel
Congrats on getting the early version out, Ron! -- Dave Cassel, @dmcassel Technical Community Manager MarkLogic Corporation http://developer.marklogic.com/ On 6/15/17, 4:52 PM, "general-boun...@developer.marklogic.com on behalf of Ro

[MarkLogic Dev General] Accessing properties of in-memory JS object in XQuery

2017-06-16 Thread Florent Georges
Hi, I have an SJS script that calls a function from an XQuery library. It passes a JS object to the function. The function needs to access the value of one property of the object (in this case, a string). I can't find in the documentation how XQuery code can navigate through the properties of a

[MarkLogic Dev General] Host restart issue after joining cluster

2017-06-16 Thread Rajesh Kumar
Thanks Geert, It worked after updating the host timeout at group level. Now I could able to test Replication as well. Thanks for your time. Regards, Rajesh ___ General mailing list General@developer.marklogic.com Manage your subscription at: http://dev