[MarkLogic Dev General] Problem in unzipping the MS Office Word 2007 document when loaded as binary into MarkLogic server database.

2009-08-18 Thread Anuj.Kumar2
Hi All, I want to load a word 2007 document into MarkLogic server database which in turn should unzip the document parts an load it into the MarkLogic server database. I have attached the WordprocessingML Process

[MarkLogic Dev General] RE: Processing huge sequences

2009-08-18 Thread Geert Josten
Hi Ivan, It might not fit your problem, and I haven't tested but this might be slightly quicker: if (doc(concat($path, 'resource.xml')//binary-resource = $item) then If you are processing over 2 mln uris then using an asynchronized process might not be a bad idea at all. Use spawn inst

RE: [MarkLogic Dev General] Help with XDMP-LISTCACHEFULL error

2009-08-18 Thread Whitby, Rob, CMG
Thanks Mike Upgrading isn't a simple task as it is our production cluster being affected. Unless I've run into a known bug with 4.0-2.2 I'm reluctant to upgrade just yet. Does anyone have any suggestions or experience of what might be causing the list cache full error, or settings I can try c

RE: [MarkLogic Dev General] Problem in unzipping the MS Office Word 2007 document when loaded as binary into MarkLogic server database.

2009-08-18 Thread Pete Aven
Hi Anuj, Open XML Extract will unzip Office 2007 documents and insert their associated parts. WordprocessingML Process merges split runs of text within the document.xml piece of an unzipped .docx (Word 2007) package. MS Office conversion is for converting Office 2003 documents. Assumin

[MarkLogic Dev General] RE: Processing huge sequences

2009-08-18 Thread Kelly Stirman
Ivan, If has the same value as the URI you are checking against, then I think you can do the following: 1) create an element range index of type string with collation equal to codepoint collation on 2) iterate over each of the values in your list and check whether it exists in any of your v

[MarkLogic Dev General] RE: Processing huge sequences

2009-08-18 Thread Geert Josten
Good one, much smarter this way. Better to save asynchonious processing for slow queries that cannot be optimized.. Grtz > Drs. G.P.H. Josten Consultant http://www.daidalos.nl/ Daidalos BV Source of Innovation Hoekeindsehof 1-4 2665 JZ Bleiswijk Tel.: +31 (0) 10 850 1200 Fax: +31 (0) 10 850

[MarkLogic Dev General] using function parameter as context for cts:search

2009-08-18 Thread Grobstein, Spike
Hi, I'm writing a cleanup function that takes a base context to match to find documents that should be deleted: (: returns a sequence of URIs that should be deleted in the context of $base_context (ie: /ra_document) that's older than $duration :) declare function cleanup:find($duration as

RE: [MarkLogic Dev General] using function parameter as context forcts:search

2009-08-18 Thread Geert Josten
Hi Spike, I see two options: - replace your xpath with some query which can be passed as parameter and added to the and-query - pass the xpath as a string, use concat to make it a complete expression and use xdmp:value to execute the string expression Kind regards, Geert > Drs. G.P.H. Josten

RE: [MarkLogic Dev General] using function parameter as contextforcts:search

2009-08-18 Thread Grobstein, Spike
Thanks Geert, I'm trying to pass the xpath as a string, so I call like this: cleanup:find($thirty_days, '/mydocument') and in the function, I have: cts:search(xdmp:value($base_context), $query) I'm still getting the error about being unsearchable. I don't understand what you mean about using

RE: [MarkLogic Dev General] using function parameter as contextforcts:search

2009-08-18 Thread Geert Josten
Hi Spike, No, it probably doesn't work that way. The check on variables is done *before* the xdmp:value is being executing if you write it like this. I meant using concat this way: xdmp:value(concat('cts:search(', $base_context, ', $query)')) Kind regards, Geert > -Original Message- >

RE: [MarkLogic Dev General] using function parameter ascontextforcts:search

2009-08-18 Thread Grobstein, Spike
Awesome, thanks! Works like a charm. ...spike -Original Message- From: general-boun...@developer.marklogic.com [mailto:general-boun...@developer.marklogic.com] On Behalf Of Geert Josten Sent: Tuesday, August 18, 2009 10:41 AM To: General Mark Logic Developer Discussion Subject: RE: [Mar

Re: [MarkLogic Dev General] Problem in unzipping the MS Office Word 2007 document when loaded as binary into MarkLogic server database.

2009-08-18 Thread Mary Holstege
On Tue, 18 Aug 2009 00:40:17 -0700, wrote: Hi All, I want to load a word 2007 document into MarkLogic server database which in turn should unzip the document parts an load it into the MarkLogic server database. I have attached the WordprocessingML Process

Re: [MarkLogic Dev General] using function parameter as contextforcts:search

2009-08-18 Thread Frank Rubino
Hi Spike- I think the issue here is that '/mydocument' is never being evaluated as xpath. You might want to try xdmp:eval. You may have to refactor things a little, but a pattern that applies is: let $e-string := fn:concat("let $q := 'the' ", "return cts:search( "/ mydocument,'", "$q)") re

Re: [MarkLogic Dev General] Help with XDMP-LISTCACHEFULL error

2009-08-18 Thread Michael Blakeley
Rob, See http://support.marklogic.com/4.0/bugs/default.xqy?fixed for a list of know bugs that have been fix in the 4.0 product. The site requires a login, which in turn requires a support contract, which I believe you have. -- Mike On 2009-08-18 02:59, Whitby, Rob, CMG wrote: Thanks Mike U

[MarkLogic Dev General] xdmp:node-replace()

2009-08-18 Thread Shannon
Hi, Am I right in thinking that this function does not operate against constructed XML? Or has that changed? Thanks, -- Shannon Scott Shiflett, XML Programmer ROTUNDA, The University of Virginia Press PO Box 801079, Charlottesville, VA 22904-4318 USA Courier: 310 Old Ivy Way, Suite 302, Charlo

RE: [MarkLogic Dev General] xdmp:node-replace()

2009-08-18 Thread Geert Josten
Yes, xdmp:node-replace and related update functions operate on nodes in databases only. There should be in-memory manipulation functions in the Xquery commons suite that can be found in the xqzone svn. You should be able to find more details on this page: http://developer.marklogic.com/code/ K

Re: [MarkLogic Dev General] xdmp:node-replace()

2009-08-18 Thread Shannon
Extremely helpful, thank you! I found Ryan Grimm's module to update in-memory nodes. Perfect. Thanks again, Shannon On Aug 18, 2009, at 3:31 PM, Geert Josten wrote: Yes, xdmp:node-replace and related update functions operate on nodes in databases only. There should be in-memory manipula

RE: [MarkLogic Dev General] Problem in unzipping the MS Office Word2007 document when loaded as binary into MarkLogic server database.

2009-08-18 Thread Anuj.Kumar2
Hi Mary, First of all thanks for replying. I forgot to mention that I have also attached the Status Change Handing pipeline to my database, but still I face the same problem. It does not unzip the document automatically. Regards, Anuj -Original Message- From: general-boun...@developer.

RE: [MarkLogic Dev General] Problem in unzipping the MS Office Word2007 document when loaded as binary into MarkLogic server database.

2009-08-18 Thread Anuj.Kumar2
Thanks Pete. It worked for me. Regards, Anuj -Original Message- From: general-boun...@developer.marklogic.com [mailto:general-boun...@developer.marklogic.com] On Behalf Of Pete Aven Sent: Tuesday, August 18, 2009 6:03 PM To: General Mark Logic Developer Discussion Subject: RE: [MarkLogic