<?xml version="1.0" encoding="UTF-8"?>
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns="http://purl.org/rss/1.0/" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:syn="http://purl.org/rss/1.0/modules/syndication/" xmlns:admin="http://webns.net/mvcb/">
  <channel rdf:about="http://permalink.gmane.org/gmane.org.user-groups.marklogic.xqzone.general">
    <title>gmane.org.user-groups.marklogic.xqzone.general</title>
    <link>http://permalink.gmane.org/gmane.org.user-groups.marklogic.xqzone.general</link>
    <description/>
    <syn:updatePeriod>hourly</syn:updatePeriod>
    <syn:updateFrequency>1</syn:updateFrequency>
    <syn:updateBase>1901-01-01T00:00+00:00</syn:updateBase>
    <items>
      <rdf:Seq>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.org.user-groups.marklogic.xqzone.general/12483"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.org.user-groups.marklogic.xqzone.general/12482"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.org.user-groups.marklogic.xqzone.general/12481"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.org.user-groups.marklogic.xqzone.general/12480"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.org.user-groups.marklogic.xqzone.general/12479"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.org.user-groups.marklogic.xqzone.general/12478"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.org.user-groups.marklogic.xqzone.general/12477"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.org.user-groups.marklogic.xqzone.general/12476"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.org.user-groups.marklogic.xqzone.general/12475"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.org.user-groups.marklogic.xqzone.general/12474"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.org.user-groups.marklogic.xqzone.general/12473"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.org.user-groups.marklogic.xqzone.general/12472"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.org.user-groups.marklogic.xqzone.general/12471"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.org.user-groups.marklogic.xqzone.general/12470"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.org.user-groups.marklogic.xqzone.general/12469"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.org.user-groups.marklogic.xqzone.general/12468"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.org.user-groups.marklogic.xqzone.general/12467"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.org.user-groups.marklogic.xqzone.general/12466"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.org.user-groups.marklogic.xqzone.general/12465"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.org.user-groups.marklogic.xqzone.general/12464"/>
      </rdf:Seq>
    </items>
    <image rdf:resource="http://gmane.org/img/gmane-25t.png"/>
    <textinput rdf:resource=""/>
  </channel>
  <image rdf:about="http://gmane.org/img/gmane-25t.png">
    <title>Gmane</title>
    <url>http://gmane.org/img/gmane-25t.png</url>
    <link>http://gmane.org</link>
  </image>
  <item rdf:about="http://permalink.gmane.org/gmane.org.user-groups.marklogic.xqzone.general/12483">
    <title>[MarkLogic Dev General] Join two different set of docs using cts:search</title>
    <link>http://permalink.gmane.org/gmane.org.user-groups.marklogic.xqzone.general/12483</link>
    <description>&lt;pre&gt;Hi,

I have two sets of documents in ML as:

fn:doc()/a. (a is root element)
Sample structure:
&amp;lt;a&amp;gt;
&amp;lt;b&amp;gt;"sample1"&amp;lt;/b&amp;gt;
&amp;lt;/a&amp;gt;

And fn:doc()/c. (c is root element)
Sample structure:
&amp;lt;c&amp;gt;
&amp;lt;b&amp;gt;"sample2"&amp;lt;/b&amp;gt;
&amp;lt;/c&amp;gt;

Now I have millions of both these types of docs.
I have to join these two sets of docs on the element b.
Return the matching values.

Currently I am using nested for loop as:

for $doc1 in fn:doc()/a
for $doc2 in fn:doc()/c
where ($doc1/b = $doc2/b)
return 
(
&amp;lt;output&amp;gt;
{
&amp;lt;b&amp;gt;{doc1/b}&amp;lt;/b&amp;gt;
}
&amp;lt;/output&amp;gt;
)

This takes very long even for a few thousands. I am trying to join them using cts:search. Any help will be appreciated.

Thanks..

&lt;/pre&gt;</description>
    <dc:creator>marklogicuser&lt; at &gt;yahoo.com</dc:creator>
    <dc:date>2013-05-24T06:33:33</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.org.user-groups.marklogic.xqzone.general/12482">
    <title>Re: [MarkLogic Dev General] Updates creating additional documents</title>
    <link>http://permalink.gmane.org/gmane.org.user-groups.marklogic.xqzone.general/12482</link>
    <description>&lt;pre&gt;Is there a CPF pipeline attached to the database (or some other triggers)?  If so, that might be what is causing the updates.

In general, batches are more efficient than single updates, maybe batches of 100 or 1000 (or more or less...), depending.  As you said, tho, a failure meant that the whole batch fails.  But that might not be a very big deal, as long as you have logic to deal with that.   Another thing that might work, even with single updates, is to run many threads from different clients, especially if you have enough resources.  If you have a single client, it is likely serializing in a single thread, so ewach transaction might have to wait for the previous one to commit.  Another option is to have a single client spawn a bunch of tasks to do updates.

Again, without knowing what the code is doing it is hard to speculate; 1 per second might be slow or might not, depending on what it is doing.

-Danny

From: general-bounces-ld4jwAGwUXTgXEvjvSGRgMKenhbt+owO&amp;lt; at &amp;gt;public.gmane.org [mailto:general-bounces&amp;lt; at &amp;gt;de&lt;/pre&gt;</description>
    <dc:creator>Danny Sokolsky</dc:creator>
    <dc:date>2013-05-23T23:24:21</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.org.user-groups.marklogic.xqzone.general/12481">
    <title>Re: [MarkLogic Dev General] Sorting on aggregation in ML4.2-7</title>
    <link>http://permalink.gmane.org/gmane.org.user-groups.marklogic.xqzone.general/12481</link>
    <description>&lt;pre&gt;Is there always one &amp;lt;value&amp;gt; per metadata?  If so, you might be able to fragment on metadata, put a range index on value, and then do something like this:

cts:sum-aggregate(cts:element-reference(xs:QName("value"), (),
  cts:element-word-query(xs:QName("country"), (), "usa") )

This should give you the sum of all values in fragments matching that cts:query.

Do you want to sort them by value or by country?  Either way, having a range index on whichever you want to sort on, you should be able to do that using the range index optimization that I mentioned earlier (the flowr with a positional predicate and an order by on a key that has a range index).

-Danny

From: general-bounces-ld4jwAGwUXTgXEvjvSGRgMKenhbt+owO&amp;lt; at &amp;gt;public.gmane.org [mailto:general-bounces&amp;lt; at &amp;gt;developer.marklogic.com] On Behalf Of Abhishek53 S
Sent: Thursday, May 23, 2013 12:36 PM
To: MarkLogic Developer Discussion
Subject: Re: [MarkLogic Dev General] Sorting on aggregation in ML4.2-7
Importance: High

Hi Danny,

You are right, I need sorting based on&lt;/pre&gt;</description>
    <dc:creator>Danny Sokolsky</dc:creator>
    <dc:date>2013-05-23T23:14:21</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.org.user-groups.marklogic.xqzone.general/12480">
    <title>Re: [MarkLogic Dev General] Querying attributes</title>
    <link>http://permalink.gmane.org/gmane.org.user-groups.marklogic.xqzone.general/12480</link>
    <description>&lt;pre&gt;Thanks for this..


-----Original Message-----
From: general-bounces-ld4jwAGwUXTgXEvjvSGRgMKenhbt+owO&amp;lt; at &amp;gt;public.gmane.org
[mailto:general-bounces-ld4jwAGwUXTgXEvjvSGRgMKenhbt+owO&amp;lt; at &amp;gt;public.gmane.org] On Behalf Of Erik Hennum
Sent: 23 May 2013 13:28
To: MarkLogic Developer Discussion
Subject: Re: [MarkLogic Dev General] Querying attributes

Hi, Dak:

Your XPath expression is copying the id attribute itself (not its value), so
XQuery is adding the attribute to the div element.

If you want to copy the value of the id attribute as the text of the div
element, you can use an expression like:

       &amp;lt;div&amp;gt;{$college/&amp;lt; at &amp;gt;id/string(.)}&amp;lt;/div&amp;gt;

If $college is not empty and $college contains an element with an id
attribute, the XPath expression will get its value.


Hoping that helps,


Erik Hennum

________________________________________
From: general-bounces-ld4jwAGwUXTgXEvjvSGRgMKenhbt+owO&amp;lt; at &amp;gt;public.gmane.org
[general-bounces-ld4jwAGwUXTgXEvjvSGRgMKenhbt+owO&amp;lt; at &amp;gt;public.gmane.org] on behalf of Mailing Lists Mail
[daktapaal-Re5JQEeQ&lt;/pre&gt;</description>
    <dc:creator>Dak Tapaal</dc:creator>
    <dc:date>2013-05-23T22:55:59</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.org.user-groups.marklogic.xqzone.general/12479">
    <title>[MarkLogic Dev General] Updates creating additional documents</title>
    <link>http://permalink.gmane.org/gmane.org.user-groups.marklogic.xqzone.general/12479</link>
    <description>&lt;pre&gt;Hello again!

So, I'm doing some investigation to my new ML project and I'm finding out
some weird things happening:

-When updates are done, it creates additional documents (creating rather
than updating).  We would get new documents when we try to update a
particular field that is part of the Data Access Descriptor (DAD) object,
such as the URI that points to the document's product. What would cause
this? I'm thinking some logic on their code.

-The time to ingest documents takes about one per second which seems really
slow to me (average size of document is approximately 15Kb). On my last
project, we would batch 1,000 documents in one file and that seems to work
better for us then. The only drawback is that if one document rejects
during the ingest, the entire batch of 1,000 doesn't get sent. It sends up
to the point when the corrupted document comes up. For example, the 999th
document fails, only 998 get sent through. Is batch processing something we
should consider now?

Any thoughts?

Any suggestions i&lt;/pre&gt;</description>
    <dc:creator>Bob O</dc:creator>
    <dc:date>2013-05-23T19:57:12</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.org.user-groups.marklogic.xqzone.general/12478">
    <title>Re: [MarkLogic Dev General] Sorting on aggregation in ML4.2-7</title>
    <link>http://permalink.gmane.org/gmane.org.user-groups.marklogic.xqzone.general/12478</link>
    <description>&lt;pre&gt;Hi Danny,
 
You are right, I need sorting based on the "summation of all value items". The perrformance is not acceptable with for loop or cts:search since 1.5 millions of documents required to get sorted. I was planning to keep the summation of value in some seperate field but the issue more complex where I need to dynamically summation the value, which means that sum of all &amp;lt;value/&amp;gt; where &amp;lt;country&amp;gt; is USA.
 
Can any type of document model change help here? 


Thanks
Abhishek Srivastav
Tata Consultancy Services
Cell:- +91-9883389968
Mailto: abhishek53.s-/cgKlWMm3F8&amp;lt; at &amp;gt;public.gmane.org
Website: http://www.tcs.com
____________________________________________
Experience certainty. IT Services
Business Solutions
Consulting
____________________________________________



-----general-bounces-ld4jwAGwUXTgXEvjvSGRgMKenhbt+owO&amp;lt; at &amp;gt;public.gmane.org wrote: -----


To: MarkLogic Developer Discussion &amp;lt;general-ld4jwAGwUXTgXEvjvSGRgMKenhbt+owO&amp;lt; at &amp;gt;public.gmane.org&amp;gt;
From: Danny Sokolsky &amp;lt;Danny.Sokolsky-efBvD/aTHCF8UrSeD/g0lQ&amp;lt; at &amp;gt;public.&lt;/pre&gt;</description>
    <dc:creator>Abhishek53 S</dc:creator>
    <dc:date>2013-05-23T19:36:07</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.org.user-groups.marklogic.xqzone.general/12477">
    <title>Re: [MarkLogic Dev General] Sorting on aggregation in ML4.2-7</title>
    <link>http://permalink.gmane.org/gmane.org.user-groups.marklogic.xqzone.general/12477</link>
    <description>&lt;pre&gt;Hi Abeshek,

First off, I am not totally sure what you mean by "summation value of one field", but I am guessing you mean to sum up all of the value elements under your content element.  To start, the naive way to do this is to just do a flowr with an order by, something like this:

xquery version "1.0-ml";
let $node := &amp;lt;content&amp;gt;
&amp;lt;id&amp;gt;C1&amp;lt;/id&amp;gt;
&amp;lt;metadata&amp;gt;
&amp;lt;country&amp;gt;USA&amp;lt;/country&amp;gt;
&amp;lt;value&amp;gt;200&amp;lt;/value&amp;gt;
&amp;lt;/metadata&amp;gt;
&amp;lt;metadata&amp;gt;
&amp;lt;country&amp;gt;CAN&amp;lt;/country&amp;gt;
&amp;lt;value&amp;gt;400&amp;lt;/value&amp;gt;
&amp;lt;/metadata&amp;gt;
&amp;lt;metadata&amp;gt;
&amp;lt;country&amp;gt;AUS&amp;lt;/country&amp;gt;
&amp;lt;value&amp;gt;300&amp;lt;/value&amp;gt;
&amp;lt;/metadata&amp;gt;
&amp;lt;/content&amp;gt;
let $node2 := &amp;lt;content&amp;gt;
&amp;lt;id&amp;gt;C1&amp;lt;/id&amp;gt;
&amp;lt;metadata&amp;gt;
&amp;lt;country&amp;gt;USA&amp;lt;/country&amp;gt;
&amp;lt;value&amp;gt;200&amp;lt;/value&amp;gt;
&amp;lt;/metadata&amp;gt;
&amp;lt;metadata&amp;gt;
&amp;lt;country&amp;gt;CAN&amp;lt;/country&amp;gt;
&amp;lt;value&amp;gt;400&amp;lt;/value&amp;gt;
&amp;lt;/metadata&amp;gt;
&amp;lt;metadata&amp;gt;
&amp;lt;country&amp;gt;AUS&amp;lt;/country&amp;gt;
&amp;lt;value&amp;gt;500&amp;lt;/value&amp;gt;
&amp;lt;/metadata&amp;gt;
&amp;lt;/content&amp;gt;

for $x in ($node, $node2)
order by fn:sum(fn:data($x//value)) descending
return $x

Now that might give an expanded tree cache error, not sure, depends on how much memory you have.

Now if that is not fast enough (or fills up the &lt;/pre&gt;</description>
    <dc:creator>Danny Sokolsky</dc:creator>
    <dc:date>2013-05-23T18:07:09</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.org.user-groups.marklogic.xqzone.general/12476">
    <title>[MarkLogic Dev General] Sorting on aggregation in ML4.2-7</title>
    <link>http://permalink.gmane.org/gmane.org.user-groups.marklogic.xqzone.general/12476</link>
    <description>&lt;pre&gt;

Hi All,
 
I need to do some sorting over summation value of one field in MarkLogic 4.2-7. 
 
Below is the way our content is organized and the sorting is required over sum of all value tag over 1.5 million document
 
Please advise!!!
 
&amp;lt;content&amp;gt;
&amp;lt;id&amp;gt;C1&amp;lt;/id&amp;gt;
&amp;lt;metadata&amp;gt;
&amp;lt;country&amp;gt;USA&amp;lt;/country&amp;gt;
&amp;lt;value&amp;gt;200&amp;lt;/value&amp;gt;
&amp;lt;/metadata&amp;gt;
&amp;lt;metadata&amp;gt;
&amp;lt;country&amp;gt;CAN&amp;lt;/country&amp;gt;
&amp;lt;value&amp;gt;400&amp;lt;/value&amp;gt;
&amp;lt;/metadata&amp;gt;
&amp;lt;metadata&amp;gt;
&amp;lt;country&amp;gt;AUS&amp;lt;/country&amp;gt;
&amp;lt;value&amp;gt;300&amp;lt;/value&amp;gt; 
&amp;lt;/metadata&amp;gt;
&amp;lt;/content&amp;gt;


Abhishek Srivastav
Tata Consultancy Services
Cell:- +91-9883389968
Mailto: abhishek53.s-/cgKlWMm3F8&amp;lt; at &amp;gt;public.gmane.org
Website: http://www.tcs.com
____________________________________________
Experience certainty. IT Services
Business Solutions
Consulting
____________________________________________
=====-----=====-----=====
Notice: The information contained in this e-mail
message and/or attachments to it may contain 
confidential or privileged information. If you are 
not the intended recipient, any dissemination, use, 
review, distribution, printin&lt;/pre&gt;</description>
    <dc:creator>Abhishek53 S</dc:creator>
    <dc:date>2013-05-23T17:53:53</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.org.user-groups.marklogic.xqzone.general/12475">
    <title>Re: [MarkLogic Dev General] Querying attributes</title>
    <link>http://permalink.gmane.org/gmane.org.user-groups.marklogic.xqzone.general/12475</link>
    <description>&lt;pre&gt;Hi, Dak:

Your XPath expression is copying the id attribute itself (not its value), so XQuery is adding the attribute to the div element.

If you want to copy the value of the id attribute as the text of the div element, you can use an expression like:

       &amp;lt;div&amp;gt;{$college/&amp;lt; at &amp;gt;id/string(.)}&amp;lt;/div&amp;gt;

If $college is not empty and $college contains an element with an id attribute, the XPath expression will get its value.


Hoping that helps,


Erik Hennum

________________________________________
From: general-bounces-ld4jwAGwUXTgXEvjvSGRgMKenhbt+owO&amp;lt; at &amp;gt;public.gmane.org [general-bounces-ld4jwAGwUXTgXEvjvSGRgMKenhbt+owO&amp;lt; at &amp;gt;public.gmane.org] on behalf of Mailing Lists Mail [daktapaal-Re5JQEeQqe8AvxtiuMwx3w&amp;lt; at &amp;gt;public.gmane.org]
Sent: Thursday, May 23, 2013 1:31 AM
To: MarkLogic Developer Discussion
Subject: [MarkLogic Dev General] Querying attributes

Dear All,
I was trying to query the atribute value using Xquery in MarkLogic and
no matter what, I dont seem to be printing the value...
So this is what I do...

 for $college a&lt;/pre&gt;</description>
    <dc:creator>Erik Hennum</dc:creator>
    <dc:date>2013-05-23T12:28:21</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.org.user-groups.marklogic.xqzone.general/12474">
    <title>Re: [MarkLogic Dev General] Updating ML license(s) progamatically</title>
    <link>http://permalink.gmane.org/gmane.org.user-groups.marklogic.xqzone.general/12474</link>
    <description>&lt;pre&gt;ThanKS AGAIN, KEN!

I'LL DOWNLOAD IT.

BOB O.


On Thu, May 23, 2013 at 4:17 AM, Ken Tune &amp;lt;Ken.Tune-efBvD/aTHCF8UrSeD/g0lQ&amp;lt; at &amp;gt;public.gmane.org&amp;gt; wrote:

&lt;/pre&gt;</description>
    <dc:creator>Bob O</dc:creator>
    <dc:date>2013-05-23T11:48:33</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.org.user-groups.marklogic.xqzone.general/12473">
    <title>Re: [MarkLogic Dev General] License Key "screen" locks up</title>
    <link>http://permalink.gmane.org/gmane.org.user-groups.marklogic.xqzone.general/12473</link>
    <description>&lt;pre&gt;Thanks, Ken! I missed that on my initial post.

~~Bob O.


On Thu, May 23, 2013 at 3:49 AM, Ken Tune &amp;lt;Ken.Tune-efBvD/aTHCF8UrSeD/g0lQ&amp;lt; at &amp;gt;public.gmane.org&amp;gt; wrote:

&lt;/pre&gt;</description>
    <dc:creator>Bob O</dc:creator>
    <dc:date>2013-05-23T11:46:34</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.org.user-groups.marklogic.xqzone.general/12472">
    <title>Re: [MarkLogic Dev General] Updating ML license(s) progamatically</title>
    <link>http://permalink.gmane.org/gmane.org.user-groups.marklogic.xqzone.general/12472</link>
    <description>&lt;pre&gt;Bob
If you download this project from git
https://github.com/mustard57/MarkLogicEC2ClusterSetup
git clonehttps://github.com/mustard57/MarkLogicEC2ClusterSetup.git myDir

you will find MarkLogicSetup.py in the for_remote directory.

RE Do I understand that correctly---that this functionality to programatically update MarkLogic licenses --will not be available until version 7?

There is no published API for this. You may be able to make use of /license-go.xqy however.

Ken


From: general-bounces-ld4jwAGwUXTgXEvjvSGRgMKenhbt+owO&amp;lt; at &amp;gt;public.gmane.org [mailto:general-bounces&amp;lt; at &amp;gt;developer.marklogic.com] On Behalf Of Bob O
Sent: 22 May 2013 17:25
To: MarkLogic Developer Discussion
Subject: Re: [MarkLogic Dev General] Updating ML license(s) progamatically

Ken,

Where would I find the MarkLogicSetup.py? Is it in the binaries?

Do I understand that correctly---that this functionality to programatically update MarkLogic licenses --will not be available until version 7?

~~Bob O.
On Tue, May 21, 2013 at 4:28 AM, Ken Tune &amp;lt;Ke&lt;/pre&gt;</description>
    <dc:creator>Ken Tune</dc:creator>
    <dc:date>2013-05-23T09:17:12</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.org.user-groups.marklogic.xqzone.general/12471">
    <title>Re: [MarkLogic Dev General] License Key "screen" locks up</title>
    <link>http://permalink.gmane.org/gmane.org.user-groups.marklogic.xqzone.general/12471</link>
    <description>&lt;pre&gt;Bob

You need this ...

/agree-go.xqy?accepted-agreement=&amp;lt;LICENSE-TYPE&amp;gt;&amp;amp;ok.x=1

which was mentioned a little further down in the response to "Updating ML license(s) progamatically"

The full sequence is

/license-go.xqy?license-key=$LICENSE_KEY&amp;amp;licensee=$LICENSEE
/agree-go.xqy?accepted-agreement=$ACCEPTED_AGREEMENT&amp;amp;ok.x=1
/initialize-go.xqy?auto=true&amp;amp;user=$ADMIN_USER_NAME,&amp;amp;password=$ADMIN_PASSWORD&amp;amp;password2=$ADMIN_PASSWORD&amp;amp;realm=public

RESTART
/security-install-go.xqy

Ken

From: general-bounces-ld4jwAGwUXTgXEvjvSGRgMKenhbt+owO&amp;lt; at &amp;gt;public.gmane.org [mailto:general-bounces&amp;lt; at &amp;gt;developer.marklogic.com] On Behalf Of Bob O
Sent: 22 May 2013 19:53
To: General-ld4jwAGwUXTgXEvjvSGRgMKenhbt+owO&amp;lt; at &amp;gt;public.gmane.org
Subject: [MarkLogic Dev General] License Key "screen" locks up

Hello,

Is there a way to read the EULA License Key Agreement page without having to stop the ML server and awaiting for a restart?

I plugged this in the URL: http://HOST:8001/license-go.xqy?licensekey=&amp;lt;KEY&amp;gt;&amp;amp;licensee=&amp;lt;LICENSEE&amp;lt;http://host:8001/license-&lt;/pre&gt;</description>
    <dc:creator>Ken Tune</dc:creator>
    <dc:date>2013-05-23T08:49:07</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.org.user-groups.marklogic.xqzone.general/12470">
    <title>[MarkLogic Dev General] Querying attributes</title>
    <link>http://permalink.gmane.org/gmane.org.user-groups.marklogic.xqzone.general/12470</link>
    <description>&lt;pre&gt;Dear All,
I was trying to query the atribute value using Xquery in MarkLogic and
no matter what, I dont seem to be printing the value...
So this is what I do...

 for $college at $position in  $doc//college
   return
        &amp;lt;div&amp;gt;
            {$college/name}
        &amp;lt;/div&amp;gt;
       &amp;lt;div&amp;gt;
            {$college/&amp;lt; at &amp;gt;id}
        &amp;lt;/div&amp;gt;

This is interesting as the first div is prints the name of the
college... the second is empty..  if I change the xpath to:
 &amp;lt;div&amp;gt;
            {$college/&amp;lt; at &amp;gt;*[1]/name()}
        &amp;lt;/div&amp;gt;
 this does print the text "id"  , which is correct.

so I tried

 &amp;lt;div&amp;gt;
            {$college/&amp;lt; at &amp;gt;*[1] }
        &amp;lt;/div&amp;gt;

I thought that this should print the value in the attribute id, which
is also the first attribute...

There is probably something very basic, I am missing... So please help!

Thanks
--Dak
&lt;/pre&gt;</description>
    <dc:creator>Mailing Lists Mail</dc:creator>
    <dc:date>2013-05-23T08:31:49</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.org.user-groups.marklogic.xqzone.general/12469">
    <title>Re: [MarkLogic Dev General] CLass Diagram for xQuery files</title>
    <link>http://permalink.gmane.org/gmane.org.user-groups.marklogic.xqzone.general/12469</link>
    <description>&lt;pre&gt;Modules are probably best mapped to components in uml-speak. There isnt
much in the way of a design class paradigm in uml and youre free to think
of your functions as mapping to whatever analysis classes you want since
analysis classes by definition dont lap directly to code.  If you want to
depict an xquery program in uml you'd probably get more bang for your buck
by focusing primarily on the behavioral diagrams (sequence, collaboration,
activity, statechart).
&lt;/pre&gt;</description>
    <dc:creator>Stu Salsbury</dc:creator>
    <dc:date>2013-05-22T22:25:01</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.org.user-groups.marklogic.xqzone.general/12468">
    <title>Re: [MarkLogic Dev General] CLass Diagram for xQuery files</title>
    <link>http://permalink.gmane.org/gmane.org.user-groups.marklogic.xqzone.general/12468</link>
    <description>&lt;pre&gt;There is some question as to whether diagramming functional programs is useful, or whether a functional program is (ideally) by its nature the simple expression of its own meaning already.
&amp;lt;

Well all MY code is self-documenting :)

Seriously though not sure what an XQuery diagram would look like.
I could imagine every module file being treated as a "class" where every function is a "method"
but without inheritance this would not be all that useful.  Probably about as useful as
   grep function *.xquery

Now for something more like JavaDocs might be more useful

https://github.com/xquery/xquerydoc

This might be of use to you





-----------------------------------------------------------------------------
David Lee
Lead Engineer
MarkLogic Corporation
dlee-efBvD/aTHCF8UrSeD/g0lQ&amp;lt; at &amp;gt;public.gmane.org
Phone: +1 812-482-5224
Cell:  +1 812-630-7622
www.marklogic.com&amp;lt;http://www.marklogic.com/&amp;gt;

&lt;/pre&gt;</description>
    <dc:creator>David Lee</dc:creator>
    <dc:date>2013-05-22T21:42:32</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.org.user-groups.marklogic.xqzone.general/12467">
    <title>Re: [MarkLogic Dev General] CLass Diagram for xQuery files</title>
    <link>http://permalink.gmane.org/gmane.org.user-groups.marklogic.xqzone.general/12467</link>
    <description>&lt;pre&gt;Of course XQuery isn't LISP and it does have non-functional features
(especially in ML), but you may want to search for "functional programming
diagrams"... there is plenty of discussion out there.

There is some question as to whether diagramming functional programs is
useful, or whether a functional program is (ideally) by its nature the
simple expression of its own meaning already.
&lt;/pre&gt;</description>
    <dc:creator>Stu Salsbury</dc:creator>
    <dc:date>2013-05-22T21:11:25</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.org.user-groups.marklogic.xqzone.general/12466">
    <title>Re: [MarkLogic Dev General] Reindexing estimation</title>
    <link>http://permalink.gmane.org/gmane.org.user-groups.marklogic.xqzone.general/12466</link>
    <description>&lt;pre&gt;Hi Michael,

Does this behavior (of queries using the old indexes while reindexing is
going on) apply :

1. to manually invoked reindexing - not just to reindexing caused by an ML
upgrade ?
2. whether or not "index detection" is set to "automatic" or "none" ?

Regards,
Danny


---------- Forwarded message ----------
From: Michael Blakeley &amp;lt;mike-dWgsRPgt/GtWk0Htik3J/w&amp;lt; at &amp;gt;public.gmane.org&amp;gt;
Date: Tue, May 14, 2013 at 4:19 PM
Subject: Re: [MarkLogic Dev General] Reindexing estimation
To: MarkLogic Developer Discussion &amp;lt;general-ld4jwAGwUXTgXEvjvSGRgMKenhbt+owO&amp;lt; at &amp;gt;public.gmane.org&amp;gt;


The database is designed so that indexes are versioned and
forward-compatible. Thus reindexing is a fully online operation. After a
major upgrade the old indexes are still there. The forests want to build
new ones, hence the reindex. But until that happens, queries use whatever
is available.

This passage from http://docs.marklogic.com/admin-help/database might help:

Server applies to the indexes for this database during request evaluation&lt;/pre&gt;</description>
    <dc:creator>Danny Sinang</dc:creator>
    <dc:date>2013-05-22T20:20:05</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.org.user-groups.marklogic.xqzone.general/12465">
    <title>Re: [MarkLogic Dev General] CLass Diagram for xQuery files</title>
    <link>http://permalink.gmane.org/gmane.org.user-groups.marklogic.xqzone.general/12465</link>
    <description>&lt;pre&gt;Kashif,

It sounds like you're trying to take your experience with other programming languages (Java, C++, others) and map that onto XQuery.

XQuery doesn't have a notion of Class.  XQuery has Library Modules and Main Modules.  I have not yet seen a tool that generated you a diagram of your modules.  But a module is not really like a Class at all.

There is xqdoc, which might help you if the XQuery code you're trying to understand is documented accordingly.

E

Eric Bloch
Director, Community
MarkLogic Corporation

desk +1 650 655 2390 | mobile +1 650 339 0376
email  eric.bloch-efBvD/aTHCF8UrSeD/g0lQ&amp;lt; at &amp;gt;public.gmane.org&amp;lt;mailto:eric.bloch-efBvD/aTHCF8UrSeD/g0lQ&amp;lt; at &amp;gt;public.gmane.org&amp;gt;
web    developer.marklogic.com&amp;lt;http://developer.marklogic.com&amp;gt;
twitter &amp;lt; at &amp;gt;eedeebee

On May 22, 2013, at 8:20 AM, "Khan, Kashif" &amp;lt;Kashif.Khan-Azcf/Un3YmUAvxtiuMwx3w&amp;lt; at &amp;gt;public.gmane.org&amp;lt;mailto:Kashif.Khan-Azcf/Un3YmUAvxtiuMwx3w&amp;lt; at &amp;gt;public.gmane.org&amp;gt;&amp;gt;
 wrote:

Hello Everyone, Has anyone used a tool to create class diagrams for the xQuery files begin &lt;/pre&gt;</description>
    <dc:creator>Eric Bloch</dc:creator>
    <dc:date>2013-05-22T20:18:51</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.org.user-groups.marklogic.xqzone.general/12464">
    <title>[MarkLogic Dev General] License Key "screen" locks up</title>
    <link>http://permalink.gmane.org/gmane.org.user-groups.marklogic.xqzone.general/12464</link>
    <description>&lt;pre&gt;Hello,

Is there a way to read the EULA License Key Agreement page without having
to stop the ML server and awaiting for a restart?

I plugged this in the URL:
http://HOST:8001/license-go.xqy?licensekey=&amp;lt;KEY&amp;gt;&amp;amp;licensee=&amp;lt;LICENSEE&amp;lt;http://host:8001/license-go.xqy?licensekey=&amp;lt;KEY&amp;gt;&amp;amp;licensee=&amp;lt;LICENSEE&amp;gt;
and it hung up MarkLogic to the point that no one can access it at all. I
had to "accept" the license query (accept or decline) in order for it to
come back up. I DID NOT have to go to Configure&amp;gt;Status&amp;gt;Restart button. Is
this normal? Does it uses another license key everytime this happens?

Thanks in advance!

~~Bob O
&lt;/pre&gt;</description>
    <dc:creator>Bob O</dc:creator>
    <dc:date>2013-05-22T18:52:59</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.org.user-groups.marklogic.xqzone.general/12463">
    <title>Re: [MarkLogic Dev General] Updating ML license(s) progamatically</title>
    <link>http://permalink.gmane.org/gmane.org.user-groups.marklogic.xqzone.general/12463</link>
    <description>&lt;pre&gt;Ken,

Where would I find the MarkLogicSetup.py? Is it in the binaries?

Do I understand that correctly---that this functionality to programatically
update MarkLogic licenses --will not be available until version 7?

~~Bob O.

On Tue, May 21, 2013 at 4:28 AM, Ken Tune &amp;lt;Ken.Tune-efBvD/aTHCF8UrSeD/g0lQ&amp;lt; at &amp;gt;public.gmane.org&amp;gt; wrote:

&lt;/pre&gt;</description>
    <dc:creator>Bob O</dc:creator>
    <dc:date>2013-05-22T16:24:31</dc:date>
  </item>
  <textinput rdf:about="http://search.gmane.org/?group=$group=gmane.org.user-groups.marklogic.xqzone.general">
    <title>Search Engine</title>
    <description>Search the mailing list at Gmane</description>
    <name>query</name>
    <link>http://search.gmane.org/?group=$group=gmane.org.user-groups.marklogic.xqzone.general</link>
  </textinput>
</rdf:RDF>
