Re: [MarkLogic Dev General] finding the number of occurences of an element in an xml

2016-11-17 Thread Justin Makeig
The code below illustrates how you can calculate co-occurrences between an element and the URI of the documents that contain instances of that element. Then, for each URI it counts the total occurrences. Note, that you'll need to have the URI lexicon enabled and an element range index on x.

[MarkLogic Dev General] finding the number of occurences of an element in an xml

2016-11-17 Thread Raghu
Hi All, I've got around 40 million XML documents out of which few documents are having an element say element x twice (they are supposed to have only one element x), I need to find the list of documents are there with multiple occurrences of that element x. what would be the ideal way to query

Re: [MarkLogic Dev General] Error setting up slush-generator

2016-11-17 Thread Geert Josten
Hi Banu, I think you are running a too old version of Ruby. You need 1.9.3 at the least. Can you check with `ruby -v`? Cheers, Geert From: > on behalf of Banu Bhandaru

[MarkLogic Dev General] Error setting up slush-generator

2016-11-17 Thread Banu Bhandaru
Hello Everyone Sorry for the email blast. I’m setting up my first app using slush generator and I’m seeing the attached error. I’m running the slush generator for create the framework for an app and I’m getting the attached error during the creation. It goes all the way after that but the

Re: [MarkLogic Dev General] General Digest, Vol 149, Issue 25

2016-11-17 Thread Shiv Shankar
Thanks Greet, I see a very good video in YouTube https://www.youtube.com/watch?v=duYcb4BsftI Regards Shan. On Thu, Nov 17, 2016 at 6:46 AM, wrote: > Send General mailing list submissions to > general@developer.marklogic.com > > To subscribe or

[MarkLogic Dev General] Sharing Modules

2016-11-17 Thread Gary Vidal
You can share modules across database by assigning all app-servers to share same modules database. Consider the following folder structure: /global-modules/ /app-1 /app-2 /app-3 If you assign your app-servers to "/" then all apps can share global as well as any other app code. Now maintenance

[MarkLogic Dev General] fn:current-dateTime() (sweet frd)

2016-11-17 Thread Gary Vidal
fn:current-dateTime() will never change within the same session/transaction. ___ General mailing list General@developer.marklogic.com Manage your subscription at: http://developer.marklogic.com/mailman/listinfo/general

Re: [MarkLogic Dev General] More insights on MarkLogic 9.0

2016-11-17 Thread Geert Josten
Hi Praveen, You can find details about MarkLogic World 2017 here: http://www.marklogic.com/blog/marklogic-world-2017/ Release schedules are not shared, even I don’t know. But I’d be surprised if it wouldn’t be released within next half year. There will be plenty noise when it hits the

Re: [MarkLogic Dev General] More insights on MarkLogic 9.0

2016-11-17 Thread Gontla Praveen
Hi Greet, When is the next Marklogic World Tour ? Where can i find the schedule for ML 9 release updates ? Thanks, Praveen. On Thu, Nov 17, 2016 at 3:34 AM, Geert Josten wrote: > Hi Shan, > > Not much has been made public yet. I expect more will be released around

Re: [MarkLogic Dev General] fn:current-dateTime()

2016-11-17 Thread Florent Georges
Hi, The current date and time is the same through the evaluation of the entire query. So if "submodule.xay" is a library module, imported in the main module, that will give you the exact same value. If it is not a library module, and you invoke, spawn, schedule a task, eval or anything else, it

Re: [MarkLogic Dev General] fn:current-dateTime()

2016-11-17 Thread Geert Josten
Hi, No, the output will be the same. In fact all calls to that function throughout the request will return the same value (effectively the request timestamp). Wrapping the call in another function will create a marginal overhead though, but depending on how often it would get called, not by

[MarkLogic Dev General] fn:current-dateTime()

2016-11-17 Thread sweet frd
Hi All, I have a module somemodule.xqy which has the following line for logic fn:current-dateTime() Will there be a difference in output for the below scenarios (a) Invoke the above xquery (somemodule.xqy) in main module (b) Directly invoke the function fn:current-dateTime() in the main

Re: [MarkLogic Dev General] More insights on MarkLogic 9.0

2016-11-17 Thread Geert Josten
Hi Shan, Not much has been made public yet. I expect more will be released around next MarkLogic World tour. There are several blogs out there though: https://www.google.nl/search?q=MarkLogic%209 And there is quite some material available through https://ea.marklogic.com/ Cheers, Geert From:

Re: [MarkLogic Dev General] Sharing Modules

2016-11-17 Thread Geert Josten
Hi Yogesh, It might be easiest to handle this outside of MarkLogic. There are lots of ways to make reusable code snippets available. You have Github for public sharing, which can be used together with the MLPM tool for MarkLogic libraries (http://registry.demo.marklogic.com/), but you can

[MarkLogic Dev General] Sharing Modules

2016-11-17 Thread Jangam, Yogesh CWR
Is there any recommended way of sharing module / functionality implementations across different DB on same ML server. For example you could have a XQY code that does custom string conversion/manipulation or a map of constants/literals. How can this be shared ? Yogesh Jangam CREDIT SUISSE