Danny Sinang | 29 Aug 04:13 2014
Picon

[MarkLogic Dev General] How to send HTML file attachment using xdmp:email

Hi,

How does one go about sending an HTML file attachment using xdmp:email ?


Regards,
Danny


<div><div dir="ltr">Hi,<div><br></div>
<div>How does one go about sending an HTML file attachment using xdmp:email ?</div>
<div><br></div>
<div><br></div>
<div>Regards,</div>
<div>Danny</div>
<div><br></div>
<div><br></div>
</div></div>
Mike Sokolov | 28 Aug 16:00 2014
Picon

[MarkLogic Dev General] possible bug w/directory deletion

The documentation for xdmp:document-delete() says that it deletes a 
document and all its properties *except for the directory property*.

However, the following sequence of queries results in an empty 
properties document (using 7.0-2.3):

xdmp:directory-create("/test/");
xdmp:document-delete("/test/");
xdmp:document-properties("/test/");

with directory creation set to either "manual" or "automatic"

I have a workaround, but I think that is a bug?  However it's in such 
direct contradiction to the documentation that I wonder if I am 
misreading that.

- Mike
Abhishek.Srivastav | 28 Aug 04:38 2014

[MarkLogic Dev General] LDAP MarkLogic - Admin access

Hi All,

Trying to connect to use admin UI over new port and external LDAP security but getting below exception. the
appserver setup is exactly same as 8001 (Admin appserver) except internal-security as false and
external-security pointing to specified external security.

500 Internal Server Error

SEC-USERDNE: xdmp:user-last-login() User does not eists

Thanks
Abhishek
This e-mail and any files transmitted with it are for the sole use of the intended recipient(s) and may
contain confidential and privileged information. If you are not the intended recipient(s), please
reply to the sender and destroy all copies of the original message. Any unauthorized review, use,
disclosure, dissemination, forwarding, printing or copying of this email, and/or any action taken in
reliance on the contents of this e-mail is strictly prohibited and may be unlawful. Where permitted by
applicable law, this e-mail and other e-mail communications sent to and from Cognizant e-mail addresses
may be monitored.
Whitby, Rob | 26 Aug 15:44 2014

[MarkLogic Dev General] Deleting system databases

Hi,

Is it safe to delete any/all of these databases?

Extensions 
Fab
Last-Login
Triggers

We¹re not using any of them so don¹t really want to have to configure
replica forests.

ML 7 btw.

Cheers
Rob

Brandon Mayhew | 22 Aug 17:18 2014
Picon

[MarkLogic Dev General] Issues when using xmlgraphics-commons-1.5

All,

I have a java web application that can use either eXist or MarkLogic. It also uses Apache FOP. While doing some XSL-FO work I ran into some issues with PDF bookmarks. To fix this issue I needed to upgrade FOP from version 0.93 to version 1.1. For FOP 1.1 to work correctly, I also had to upgrade xmlgraphics-commons from version 1.2 to version 1.5.

After upgrading xmlgraphics-commons, the application locks up when I use MarkLogic as the database. I'm able to login fine, but if I start navigating (runs basic XQueries; some containing cts module functions) the browser spins (tries to connect and waits indefinitely) and never comes back.

I've checked the tomcat logs and the marklogic logs and I can't find any errors or hints as to what is happening. If I use eXist, everything works normally. If I use xmlgraphics-commons-1.2, everything works normally (except FOP). I also tried versions 1.3 and 1.4 of xmlgraphics-commons, but I still have the same issue.

Has anyone else had an issue like this before and were you able to solve it?

Thanks,

Brandon
<div><div dir="ltr">
<div>
<div>
<div>
<div>All,<br><br>
</div>I have a java web application that can use either eXist or MarkLogic. It also uses Apache FOP. While doing some XSL-FO work I ran into some issues with PDF bookmarks. To fix this issue I needed to upgrade FOP from version 0.93 to version 1.1. For FOP 1.1 to work correctly, I also had to upgrade xmlgraphics-commons from version 1.2 to version 1.5.<br><br>
</div>After upgrading xmlgraphics-commons, the application locks up when I use MarkLogic as the database. I'm able to login fine, but if I start navigating (runs basic XQueries; some containing cts module functions) the browser spins (tries to connect and waits indefinitely) and never comes back.<br><br>
</div>I've checked the tomcat logs and the marklogic logs and I can't find any errors or hints as to what is happening. If I use eXist, everything works normally. If I use xmlgraphics-commons-1.2, everything works normally (except FOP). I also tried versions 1.3 and 1.4 of xmlgraphics-commons, but I still have the same issue.<br><br>
</div>
<div>Has anyone else had an issue like this before and were you able to solve it?<br><br>Thanks,<br><br>
</div>
<div>Brandon<br>
</div>
</div></div>
Jakob Fix | 22 Aug 11:37 2014
Picon

[MarkLogic Dev General] Monitoring Dashboard question

Hi,

when looking at


I see the disk space available. In the below screenshot you'll see that for some reason the Dashboard shows the same directory twice, and even with different values for each. As you'll notice we're running this on Windows, and apparently, the dashboard considers these two different 'expressions' to be different directories.

E:\MarkLogicData
E:/MarkLogicData/

http://i.imgur.com/OK3Ht1M.png

Thanks for letting me know how I can consolidate them; where do these locations come from?

cheers,
Jakob.
<div><div dir="ltr">
<div>Hi,</div>
<div><br></div>
<div>when looking at</div>
<div><br></div>
<div>
<a href="http://localhost:8002/dashboard/disk-space/">http://localhost:8002/dashboard/disk-space/</a><br>
</div>
<div><br></div>
<div>I see the disk space available. In the below screenshot you'll see that for some reason the Dashboard shows the same directory twice, and even with different values for each. As you'll notice we're running this on Windows, and apparently, the dashboard considers these two different 'expressions' to be different directories.</div>

<div><br></div>E:\MarkLogicData<br>E:/MarkLogicData/≤div><br></div>
<div>
<a href="http://i.imgur.com/OK3Ht1M.png">http://i.imgur.com/OK3Ht1M.png</a><div><br></div>
<div>Thanks for letting me know how I can consolidate them; where do these locations come from?</div>

<div>
<br clear="all"><div>cheers,</div>
<div>Jakob.</div>
</div>
</div>
</div></div>
judie pearline | 21 Aug 14:24 2014
Picon

[MarkLogic Dev General] 2 elements in a single document- satisfying/not satisfying And not query.

Hi all,

Here, I am inserting two documents: demo2.xml contains only party1 attribute and demo1.xml contains party1 and party2 attributes.
Xdmp:document-insert(“demo1.xml”,
<root>
  <shortname party1="abc"/>
  <shortname party1="efg" party2="pqrs"/>
</root>

Xdmp:document-insert(“demo2.xml”,
<root>  <shortname party1="abc"/></root>)

Now, I want documents who has party1 attribute as ‘abc’. So when I apply cts:and-not-query as below, it is giving demo2.xml but not demo1.xml.
Query:

let $party1 := "abc"
let $party2 := "*"
return
cts:search(fn:doc(),
cts:and-not-query(
    cts:element-attribute-word-query(xs:QName("shortname"),xs:QName("party1"),$party1,
            ("case-insensitive","punctuation-insensitive","lang=en"), 1),
    cts:element-attribute-word-query(xs:QName("shortname"),xs:QName("party2"),$party2,
        ("case-insensitive","diacritic-insensitive","punctuation-insensitive","wildcarded","lang=en"), 1)
    )  )

So, now I want to generate a query that gives documents which contains party1 attribute as ‘abc’ no matter what party2 attribute is. And it should return both the documents. Can you some one help us on this?

Regards,
Judy
<div><div>
<div class="">Hi all,</div>
<div class=""><br></div>
<div class="">Here, I am inserting two documents: demo2.xml contains only party1 attribute and demo1.xml contains party1 and party2 attributes.<br class="">Xdmp:document-insert(&ldquo;demo1.xml&rdquo;, <br class="">&lt;root&gt;<br class="">&nbsp; &lt;shortname party1="abc"/&gt;<br class="">&nbsp; &lt;shortname party1="efg" party2="pqrs"/&gt;<br class="">&lt;/root&gt;<br class=""><br class="">Xdmp:document-insert(&ldquo;demo2.xml&rdquo;, <br class="">&lt;root&gt;&nbsp; &lt;shortname party1="abc"/&gt;&lt;/root&gt;)</div>
<div class="">
<br class="">Now, I want documents who has party1 attribute as &lsquo;abc&rsquo;. So when I apply cts:and-not-query as below, it is giving demo2.xml but not demo1.xml.<br class="">Query: <br class=""><br class="">let $party1 := "abc"<br class="">let $party2 := "*"<br class="">return <br class="">cts:search(fn:doc(),<br class="">cts:and-not-query(<br class="">&nbsp;&nbsp;&nbsp; cts:element-attribute-word-query(xs:QName("shortname"),xs:QName("party1"),$party1,<br class="">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; ("case-insensitive","punctuation-insensitive","lang=en"), 1),<br class="">&nbsp;&nbsp;&nbsp; cts:element-attribute-word-query(xs:QName("shortname"),xs:QName("party2"),$party2,<br class="">&nbsp;&nbsp;&nbsp;
 &nbsp;&nbsp;&nbsp; ("case-insensitive","diacritic-insensitive","punctuation-insensitive","wildcarded","lang=en"), 1)<br class="">&nbsp;&nbsp;&nbsp; )&nbsp; )<br class=""><br class="">So, now I want to generate a query that gives documents which contains party1 attribute as &lsquo;abc&rsquo; no matter what party2 attribute is. And it should return both the documents. Can you some one help us on this?<br>
</div>
<div class=""><br></div>
<div class="">Regards,</div>
<div class="">Judy<br class="">
</div>
</div></div>
irisDeveloper | 19 Aug 14:46 2014
Picon

[MarkLogic Dev General] Attribute indexing

Hi all,

I didn't find anything in database configuration , for attribute 
indexing. Does MarkLogic support xml attribute indexing?

Thanks
Samby
Will Thompson | 19 Aug 00:16 2014

[MarkLogic Dev General] Java webservice/XCC security

A Java application will somehow need to securely be allowed to insert documents into the dbs of its callers,
which are all other ML databases (several developers, QA, and production). ML executes http-get calls to
Java with parameters for the jobs, Java does a bunch of work (this takes a while), and then finally inserts
documents into the caller's db via XCC. 

I have used semi-secure but convenient solutions for purely internal applications; however, this one
will have to work over the Internet. My first thought was to have the caller generate a token, pass to Java
SSL endpoint along with other parameters, Java calls XCC with limited credentials and the token, token is
checked by caller and insertion is amped if it matches, then token is deleted. Will that suffice, or are
there better, smarter ways to accomplish this? 

Thanks,

Will
Picon

[MarkLogic Dev General] sql interface for java

Hi All,
  Could the sql interface of marklogic be used by java? The databases of marklogic support the existence of sql interface and rest interface at the same time. So I think can I use the sql interface by java directly in order to not use the seach querymanager.

Best regards
evil
qinggangwang7 <at> gmail.com
<div>
<div>
<span></span>Hi All,</div>
<div>&nbsp; Could the sql interface of marklogic be used by java? The databases of marklogic support the existence of sql interface and rest interface at the same time. So I think can I use the sql interface by java directly in order to not use the seach querymanager.</div>
<div><br></div>
<div>Best regards</div>
<div>evil</div>
<div><span><div><div>qinggangwang7 <at> gmail.com</div></div></span></div>
</div>
Harry Bakken | 15 Aug 19:24 2014
Picon

[MarkLogic Dev General] Spawning tasks in clusters

I am having a hard time finding information about spawning tasks in a clustered environment. I have a process for ingesting data from a web service that will queue up service calls in the task server using xdmp:spawn. It works fine and does what we need, but when we run it in a clustered environment, only one node ends up with all the work.

It seems that the node where the xdmp:spawn call was made is the node where the task server will handle the work. Is there a way to have the nodes in the cluster work off of one task server queue, or is it node-specific? Is it a matter of simply queuing up work on each node in order to leveral all nodes in the cluster?

Thanks,
Harry
<div><div dir="ltr">I am having a hard time finding information about spawning tasks in a clustered environment. I have a process for ingesting data from a web service that will queue up service calls in the task server using xdmp:spawn. It works fine and does what we need, but when we run it in a clustered environment, only one node ends up with all the work.<div>
<br>
</div>
<div>It seems that the node where the xdmp:spawn call was made is the node where the task server will handle the work. Is there a way to have the nodes in the cluster work off of one task server queue, or is it node-specific? Is it a matter of simply queuing up work on each node in order to leveral all nodes in the cluster?</div>
<div><br></div>
<div>Thanks,</div>
<div>Harry</div>
</div></div>

Gmane