Thanks Laurens, Where do I execute xdmp:save? It doesn't appear to work with the cq. Do I need to execute it from a DOS prompt? So far, I have only used the GUIs to work with MarkLogic.
Jerry Goldsmith -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of [email protected] Sent: Thursday, August 06, 2009 11:02 AM To: [email protected] Subject: General Digest, Vol 62, Issue 10 Send General mailing list submissions to [email protected] To subscribe or unsubscribe via the World Wide Web, visit http://xqzone.com/mailman/listinfo/general or, via email, send a message with subject or body 'help' to [email protected] You can reach the person managing the list at [email protected] When replying, please edit your Subject line so it is more specific than "Re: Contents of General digest..." Today's Topics: 1. Export of XML from Marklogic (Goldsmith, Gerald CAR) 2. Re: Export of XML from Marklogic (Laurens van den Oever) 3. xqsync question (Jakob Fix) 4. RE: pagination using new search API (Joshil Avikkal) ---------------------------------------------------------------------- Message: 1 Date: Thu, 6 Aug 2009 10:46:03 -0400 From: "Goldsmith, Gerald CAR" <[email protected]> Subject: [MarkLogic Dev General] Export of XML from Marklogic To: <[email protected]> Message-ID: <[email protected]> Content-Type: text/plain; charset="us-ascii" Greetings, Would anyone be so kind as to inform me how I might export XML content from Marklogic to an XML file? If possible, I would like to export all of the content to XML files. Thanks. Best Regards, Gerald Goldsmith Software Applications Engineer CAD Architect Carrier Corporation 9300 Harris Corners Parkway Suite 200 Charlotte, NC 28269 704.494.2552 Everything should be made as simple as possible, but not simpler. - Albert Einstein -------------- next part -------------- An HTML attachment was scrubbed... URL: http://xqzone.marklogic.com/pipermail/general/attachments/20090806/f0345 315/attachment-0001.html ------------------------------ Message: 2 Date: Thu, 6 Aug 2009 16:56:17 +0200 From: Laurens van den Oever <[email protected]> Subject: Re: [MarkLogic Dev General] Export of XML from Marklogic To: General Mark Logic Developer Discussion <[email protected]> Message-ID: <[email protected]> Content-Type: text/plain; charset="windows-1252" Hi Gerald, I have used xdmp:save for that purpose. For a small database you can iterate over all your files but eventually your query will timeout. In my case I just split the collection in a few batches. I would be interested in a pattern to run this type of query as a sequence of transactions. Maybe someone else can comment on that? Best regards, Laurens van den Oever Xopus BV http://xopus.com +31 70 4452345 KvK 27301795 2009/8/6 Goldsmith, Gerald CAR <[email protected]> > Greetings, > > Would anyone be so kind as to inform me how I might export XML content > from Marklogic to an XML file? If possible, I would like to export all of > the content to XML files. > > Thanks. > > Best Regards, > > Gerald Goldsmith > > Software Applications Engineer > > CAD Architect Carrier Corporation > > 9300 Harris Corners Parkway > > Suite 200 > > Charlotte, NC 28269 > > 704.494.2552 > ****** > > *****Everything should be made as simple as possible, but not simpler.* > - Albert Einstein > > > _______________________________________________ > General mailing list > [email protected] > http://xqzone.com/mailman/listinfo/general > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://xqzone.marklogic.com/pipermail/general/attachments/20090806/f0ebf 35b/attachment-0001.html ------------------------------ Message: 3 Date: Thu, 6 Aug 2009 16:59:04 +0200 From: Jakob Fix <[email protected]> Subject: [MarkLogic Dev General] xqsync question To: General Mark Logic Developer Discussion <[email protected]> Message-ID: <[email protected]> Content-Type: text/plain; charset=ISO-8859-1 Hi, I've recently used xqsync to back up some 500K small files on a dev machine and to restore them on the test server. while the dump of the files caused no problems, trying to import them gave a number of intermittent "non-fatal" errors (see http://pastebin.com/m263dba50 for more) like this: WARNING: error in input package E:\data-000.zip Aug 6, 2009 4:43:00 PM com.marklogic.ps.SimpleLogger logException SEVERE: non-fatal java.util.concurrent.ExecutionException: com.marklogic.ps.xqsync.SyncException: com.marklogic.xcc.exceptions.XQueryException: SVC-MEMALLOC: Memory allocation error: VirtualAlloc 134217728 bytes: Not enough storage is available to process this command. the commandline I used to import the files is this one (based on Michael Blakeley's very useful tutorial): java -cp "xqsync.jar;xcc.jar;xstream-1.3.1.jar;xpp3-1.1.4.jar" -Xmx1024m -DTHREADS=20 -Dfile.encoding=UTF-8 -DOUTPUT_CONNECTION_STRING=xcc://admin:[email protected]:8088 -DINPUT_PACKAGE=E: com.marklogic.ps.xqsync.XQSync following the xqsync readme file, I chose a generous heapsize of 1Gb for 500K documents and increased the number of concurrent threads as the docs are small, about 1Kb in size. a big chunk of the error messages in context can be seen here: http://pastebin.com/m263dba50 what I'd like to know is whether these errors mean that some documents have not been imported, and what would the best strategy to make sure all documents are imported correctly? cheers, Jakob. ------------------------------ Message: 4 Date: Thu, 6 Aug 2009 20:25:22 +0530 From: "Joshil Avikkal" <[email protected]> Subject: RE: [MarkLogic Dev General] pagination using new search API To: "General Mark Logic Developer Discussion" <[email protected]> Message-ID: <[email protected]> Content-Type: text/plain; charset="us-ascii" Hi, I have an xml like follows and my database contains just one document with similar tags. <Root> <title>cook1 <Category count ="1" >wine and beer, wine and water </category <Category count ="2" >this is a sample document </category> </title> <title>cook2 <Category count ="1" >party and cocktail</category> <2title> <title>cook3 <Category count ="1" >wine</category> </title> </root> I would like to use "search: search" function and get following the string term "wine". . 1. Total number of the matches found in number of <title> tags. In this example, although the "wine" appears twice in the <title> "Cook1", it should be counted as 1 and it should return only two search:result nodes. I set <max-matches> to 1 control this. But I need to find out how many such matches exist in entire document. Is there way to find this out without traversing through the entire search:result ? 2. Along with the search:snippet I always want to display the value of the <title> tag inside with search:result along with search:snippet. How can I do this ? Thank you, --Joshil ------------------------------------------------------------------------ --------------------- This message, including any attachments, contains confidential information intended for a specific individual and purpose, and is intended for the addressee only. Any unauthorized disclosure, use, dissemination, copying, or distribution of this message or any of its attachments or the information contained in this e-mail, or the taking of any action based on it, is strictly prohibited. If you are not the intended recipient, please notify the sender immediately by return e-mail and delete this message. ------------------------------------------------------------------------ --------------------- -------------- next part -------------- An HTML attachment was scrubbed... URL: http://xqzone.marklogic.com/pipermail/general/attachments/20090806/3ee5c f04/attachment.html ------------------------------ _______________________________________________ General mailing list [email protected] http://xqzone.com/mailman/listinfo/general End of General Digest, Vol 62, Issue 10 *************************************** _______________________________________________ General mailing list [email protected] http://xqzone.com/mailman/listinfo/general
