Re: [MarkLogic Dev General] View deleted documents ?

2012-09-14 Thread Danny Sinang
Is it advisable/desirable to turn on Point-in-time queries in a production environment ? Regards, Danny On Fri, Sep 14, 2012 at 5:02 PM, Danny Sinang wrote: > Please disregard. Found the answer ... > > When this parameter is set to 0 (the default) and merges are enabled, > point-in-time querie

Re: [MarkLogic Dev General] View deleted documents ?

2012-09-14 Thread Danny Sinang
Please disregard. Found the answer ... When this parameter is set to 0 (the default) and merges are enabled, point-in-time queries are effectively disabled. On Fri, Sep 14, 2012 at 4:49 PM, Danny Sinang wrote: > So what does "merge timestamp" = 0 mean ? Keep as much obsolete data until > the ne

Re: [MarkLogic Dev General] View deleted documents ?

2012-09-14 Thread Danny Sinang
So what does "merge timestamp" = 0 mean ? Keep as much obsolete data until the next merge ? Regards, Danny On Fri, Sep 14, 2012 at 4:28 PM, Michael Blakeley wrote: > > http://docs.marklogic.com/5.0doc/docapp.xqy#display.xqy?fname=http://pubs/5.0doc/xml/dev_guide/point_in_time.xml > > -- Mike >

Re: [MarkLogic Dev General] View deleted documents ?

2012-09-14 Thread Michael Blakeley
http://docs.marklogic.com/5.0doc/docapp.xqy#display.xqy?fname=http://pubs/5.0doc/xml/dev_guide/point_in_time.xml -- Mike On 14 Sep 2012, at 12:46 , Danny Sinang wrote: > Hi, > > How does Marklogic delete documents ? Logically or Physically ? > > If logically, how do I view these logically dele

[MarkLogic Dev General] View deleted documents ?

2012-09-14 Thread Danny Sinang
Hi, How does Marklogic delete documents ? Logically or Physically ? If logically, how do I view these logically deleted documents ? Regards, Danny ___ General mailing list General@developer.marklogic.com http://developer.marklogic.com/mailman/listinfo/

Re: [MarkLogic Dev General] ctx and xdmp declaration

2012-09-14 Thread Keith L. Breinholt
You could use the browser based debugger XQDebug: http://code.google.com/p/xqdebug/ XQDebug allows you to debug websites and webservices built on MarkLogic. If you want to debug directly from an editor user Oxygen or from qconsole use XQDT. From: general-boun...@developer.marklogic.com [mail

Re: [MarkLogic Dev General] ctx and xdmp declaration

2012-09-14 Thread Geert Josten
There is also XQDT, which runs in Eclipse.. Kind regards, Geert *Van:* general-boun...@developer.marklogic.com [mailto: general-boun...@developer.marklogic.com] *Namens *Gary Larsen *Verzonden:* vrijdag 14 september 2012 19:30 *Aan:* 'MarkLogic Developer Discussion' *Onderwerp:* Re: [MarkLog

Re: [MarkLogic Dev General] ctx and xdmp declaration

2012-09-14 Thread Gary Larsen
Thanks for everyone's help. Still stuck with the Oxygen debugger but need to move on and try to resolve later. Are there any other XQuery debuggers that people are using with ML? Thanks, Gary From: general-boun...@developer.marklogic.com [mailto:general-boun...@developer.marklogic.

Re: [MarkLogic Dev General] Inserting in a file system module database

2012-09-14 Thread Michael Blakeley
Not as far as I know. As I understand it, the concern here is security. Any filesystem delete (or move) would be protected by an exec privilege and would be restricted by filesystem permissions. But it's even more secure to omit the functionality completely. The same logic applies to any kind o

Re: [MarkLogic Dev General] ctx and xdmp declaration

2012-09-14 Thread Tim Meagher
Hi Gary, Have you set up a MarkLogic DataSource in oXygen using the xcc .jar file for your particular version of MarkLogic and run your query in the context of a connection to that datasource? Tim Meagher From: general-boun...@developer.marklogic.com [mailto:general-boun...@developer.marklo

Re: [MarkLogic Dev General] Inserting in a file system module database

2012-09-14 Thread Keith L. Breinholt
Unfortunately a move is effectively a copy and delete operation, so that is not likely to occur until a delete option is available. Rename is OS specific but within a directory should be doable, but I am not aware of any such operation. Are you aware of a rename operation Michael? -Ori

Re: [MarkLogic Dev General] ctx and xdmp declaration

2012-09-14 Thread Geert Josten
Hi, Yes, what Ryan describes should be possible. You have to declare xdmp namespaces and alike explicitly, and you won’t be able to use for instance try catch, but the code below should work. Kind regards, Geert *Van:* general-boun...@developer.marklogic.com [mailto: general-boun...@devel

Re: [MarkLogic Dev General] Inserting in a file system module database

2012-09-14 Thread Florent Georges
Keith L. Breinholt wrote:   Hi, > Unfortunately there is no XQuery functionality to remove a file > system directory or a file.   Thanks.  In my case, I guess the best option is to handle the rest of the processing (removing the files from the management meta information) and ask the user to del

Re: [MarkLogic Dev General] ctx and xdmp declaration

2012-09-14 Thread Ryan Dew
The "1.0" version of the query doesn't run or the debugger is indicating an issue? If the query is not executing than it may be a bug in the version of ML you are using. In ML version 5.0-3.3 I'm able to run the following in qconsole just fine: xquery version "1.0"; declare namespace xdmp = "h

Re: [MarkLogic Dev General] Inserting in a file system module database

2012-09-14 Thread Keith L. Breinholt
Unfortunately there is no XQuery functionality to remove a file system directory or a file. Currently best practice is to zero out the file by writing a zero length file and using an external process to delete empty files and folders older than a couple hours or a day. -Original Message-

Re: [MarkLogic Dev General] remove delete fragments

2012-09-14 Thread Paul M
, Gary Larsen wrote: Hi, Trying to debug a query in Oxygen but have syntax errors: XQuery syntax error in #...ns/envisn/netvisn/p')/p:params#:    Prefix xdmp has not been declared XQuery syntax error in #... cts:element-value-query#:    Prefix

Re: [MarkLogic Dev General] Inserting in a file system module database

2012-09-14 Thread Florent Georges
Florent Georges wrote: > Michael Blakeley wrote:   Hi, >> There is no documented API function for directory creation. >> But http://marklogic.markmail.org/thread/t657yhz5oryvzrj6 >> includes mention of an undocumented, unsupported function. >   Excellent, thanks for the tip!  I don't like to use

Re: [MarkLogic Dev General] ctx and xdmp declaration

2012-09-14 Thread Gary Larsen
Thanks Ryan. That worked but now I've run into a function signature issue. In the xdmp:unquote() call below I get this syntax error in Oxygen's debugger: > Cannot find a matching 2-argument function named {http://marklogic.com/xdmp}unquote() declare function console-data:param($name,