Keep in mind you can have multiple app servers for each database Furthermore, cq allows you to evaluate an expression against any of the databases, whether they have an app server or not.
So, a typical config we use at Mark Logic for our demo servers, where we might have dozens of apps running on a single instance of ML, is to have one app server for cq that everyone uses for their respective environments. Because cq allows for multiple sessions, each developer typically has one or more sessions that are saved and they can return to (eg, one session per app they are developing). In addition to this one app server for cq, each developer that is deploying an app server can decide for themselves whether they prefer the file system for their application files (typically vim and emacs users), or a webdav client such as oxygen (what I use). The modules database, security database, and triggers database are all designed so they can be shared by multiple applications. When sharing the modules database, each application gets its own root directory. So, if my app server is configured for the modules db, its root would be /my-root/ It is possible to make the database of your documents the database for your code, security, and triggers too, but that's not something that most people do. One nice benefit of having your modules in the database, aside from security and backup, is that they are searchable, including traversal of the import statements. Kelly ----- Original Message ----- From: [email protected] <[email protected]> To: [email protected] <[email protected]> Sent: Fri Mar 06 06:06:17 2009 Subject: General Digest, Vol 57, 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. RE: Uploading PDF files (Danny Sokolsky) 2. Re: CORB reporting (James A. Robinson) 3. Re: Undefined function error() (Florent Georges) 4. Edit library modules through WebDAV? (Florent Georges) 5. RE: Edit library modules through WebDAV? (Geert Josten) 6. Re: Edit library modules through WebDAV? (Florent Georges) 7. RE: Edit library modules through WebDAV? (Geert Josten) 8. Re: Edit library modules through WebDAV? (Florent Georges) ---------------------------------------------------------------------- Message: 1 Date: Thu, 5 Mar 2009 21:09:14 -0800 From: "Danny Sokolsky" <[email protected]> Subject: RE: [MarkLogic Dev General] Uploading PDF files To: <[email protected]>, "General Mark Logic Developer Discussion" <[email protected]> Message-ID: <[email protected]> Content-Type: text/plain; charset="us-ascii" Hi Pradeep, By default, pdf documents are loaded as binary documents, which will not return any hits for full-text search. To search them, you could set up a CPF application and run them through pdf conversion (which requires the document conversion license), and that will convert the PDF documents to XML, which you can search. -Danny From: [email protected] [mailto:[email protected]] On Behalf Of Pradeep Maddireddy Sent: Tuesday, March 03, 2009 12:08 PM To: General Mark Logic Developer Discussion Subject: [MarkLogic Dev General] Uploading PDF files Hi..! When we upload a pdf document into Mark logic, do non binary words get indexed? Can we perform a search on the PDF documents uploaded to Marklogic? Thanks Pradeep Maddireddy -------------- next part -------------- An HTML attachment was scrubbed... URL: http://xqzone.marklogic.com/pipermail/general/attachments/20090305/af67d18b/attachment-0001.html ------------------------------ Message: 2 Date: Thu, 05 Mar 2009 21:53:17 -0800 From: "James A. Robinson" <[email protected]> Subject: Re: [MarkLogic Dev General] CORB reporting To: "Danny Sokolsky" <[email protected]> Cc: General Mark Logic Developer Discussion <[email protected]> Message-ID: <[email protected]> > Why do you have to update the report document each time you get a hit? > How many documents do you expect to match--10, 1000, 100000? I am > blissfully ignorant of CORB, so maybe (probably...) I am looking at this > naively, but it seems like you might be able to do this all in XQuery. The problem is that the scope of the search is so large that we simply cannot process it from within a single execution which hits all documents. I hadn't thought about using xdmp:spawn. > I am thinking maybe break it up into batches of, say, 1000 documents, > then spawn the update to the report for each 1000 hits. If you can > constrain your cts:uri-match with a cts:query that could make it so you > don't have to look at every document, that would help too. Here is > pseudo-code of what I mean: Sure, we do use cts:uri-match to restrict the hits. Using a technique to spawn queries isn't something I had considered doing, I'll look into that. Thank you! JIm - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - James A. Robinson [email protected] Stanford University HighWire Press http://highwire.stanford.edu/ +1 650 7237294 (Work) +1 650 7259335 (Fax) ------------------------------ Message: 3 Date: Fri, 6 Mar 2009 09:19:12 +0000 (GMT) From: Florent Georges <[email protected]> Subject: Re: [MarkLogic Dev General] Undefined function error() To: Danny Sokolsky <[email protected]> Cc: MarkLogic General ML <[email protected]> Message-ID: <[email protected]> Content-Type: text/plain; charset=utf-8 Danny Sokolsky wrote: > This is an implementation-defined behavior in MarkLogic > Server, which is allowed according to the spec. Yes, but I am not sure this is in the spirit of the REC. It says this is allowed but not recommended, so I guess it just let the door open for some specialized implementations where that could be a real advantage. But well, I am just guessing and you're right, that's conformant. > (some would say prefixing the standard functions is good practice > anyway, but that is a matter of style...). I wouldn't be one of them, but well, I guess I am too much used to XSLT, where we can't change the default function namespace anyway :-) Thanks for the pointer and explanations. Regards, -- Florent Georges http://www.fgeorges.org/ ------------------------------ Message: 4 Date: Fri, 6 Mar 2009 10:02:27 +0000 (GMT) From: Florent Georges <[email protected]> Subject: [MarkLogic Dev General] Edit library modules through WebDAV? To: MarkLogic General ML <[email protected]> Message-ID: <[email protected]> Content-Type: text/plain; charset=utf-8 Hi, I have ML installed on a virtual box for developing purposes, and I'd like to configure oXygen to directly edit library modules in this instance. I thought it would be possible as it supports WebDAV. But when I add a resource to the database with the oXygen's Database Explorer, it is added to the documents database, not with the modules, so I can't refer to it using "import module" if I am right. Here are the servers involved: - HTTP: database=Documents, modules=(file system) - WebDAV: database=Documents - XDBC: database=Documents, modules=(file system) I *guess* I could change the HTTP's modules to the Modules database, and create additional WebDAV and XDBC servers bound to this database, but I would like to keep it bound to (file system). Is it possible? Did I missed or mixed up something? Regards, -- Florent Georges http://www.fgeorges.org/ ------------------------------ Message: 5 Date: Fri, 6 Mar 2009 11:15:49 +0100 From: Geert Josten <[email protected]> Subject: RE: [MarkLogic Dev General] Edit library modules through WebDAV? To: "[email protected]" <[email protected]>, General Mark Logic Developer Discussion <[email protected]> Message-ID: <0260356c6dfe754ba6fa48e659a1433823f2c7f...@helios.olympus.borgus.nl> Content-Type: text/plain; charset="Windows-1252" Hi Florent, The WEBDAV servers accesses the database connected to it, not the file system. So indeed you will have to move your modules to the Modules database and add a WEBDAV server connected to that one. To my personal opinion you are better off putting the libraries in the Modules database. Note that you can use the Security layer of MarkLogic Server to apply that to the modules themselves as well, giving for instance only specific roles execute rights on specific libraries. You cannot do that when you put them on the file system.. Kind regards, Geert > 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 1199 http://www.daidalos.nl/ KvK 27164984 De informatie - verzonden in of met dit emailbericht - is afkomstig van Daidalos BV en is uitsluitend bestemd voor de geadresseerde. Indien u dit bericht onbedoeld hebt ontvangen, verzoeken wij u het te verwijderen. Aan dit bericht kunnen geen rechten worden ontleend. > From: [email protected] > [mailto:[email protected]] On Behalf Of > Florent Georges > Sent: vrijdag 6 maart 2009 11:02 > To: MarkLogic General ML > Subject: [MarkLogic Dev General] Edit library modules through WebDAV? > > > Hi, > > I have ML installed on a virtual box for developing > purposes, and I'd like to configure oXygen to directly edit > library modules in this instance. I thought it would be > possible as it supports WebDAV. But when I add a resource to > the database with the oXygen's Database Explorer, it is added > to the documents database, not with the modules, so I can't > refer to it using "import module" if I am right. Here are the servers > involved: > > - HTTP: database=Documents, modules=(file system) > - WebDAV: database=Documents > - XDBC: database=Documents, modules=(file system) > > I *guess* I could change the HTTP's modules to the Modules > database, and create additional WebDAV and XDBC servers bound > to this database, but I would like to keep it bound to (file > system). Is it possible? Did I missed or mixed up something? > > Regards, > > -- > Florent Georges > http://www.fgeorges.org/ > > > > > > > > > > > > > > > > > > > > > > > > > _______________________________________________ > General mailing list > [email protected] > http://xqzone.com/mailman/listinfo/general > ------------------------------ Message: 6 Date: Fri, 6 Mar 2009 11:09:12 +0000 (GMT) From: Florent Georges <[email protected]> Subject: Re: [MarkLogic Dev General] Edit library modules through WebDAV? To: General Mark Logic Developer Discussion <[email protected]>, Geert Josten <[email protected]> Message-ID: <[email protected]> Content-Type: text/plain; charset=utf-8 Geert Josten wrote: > To my personal opinion you are better off putting the > libraries in the Modules database. Note that you can use the > Security layer of MarkLogic Server to apply that to the > modules themselves as well, giving for instance only specific > roles execute rights on specific libraries. You cannot do > that when you put them on the file system. Yes, that's what I thought for a while, and you convinced me. I must admit that if I didn't do it before, it is only because I didn't find a way to install CQ unless on the file system :-$. I will first look again for that info, because I can't afford to not have CQ anymore, then I'll switch the modules to the Modules database. Thank you for the comments, regards, -- Florent Georges http://www.fgeorges.org/ ------------------------------ Message: 7 Date: Fri, 6 Mar 2009 15:07:17 +0100 From: Geert Josten <[email protected]> Subject: RE: [MarkLogic Dev General] Edit library modules through WebDAV? To: "[email protected]" <[email protected]>, General Mark Logic Developer Discussion <[email protected]> Message-ID: <0260356c6dfe754ba6fa48e659a1433823f2c80...@helios.olympus.borgus.nl> Content-Type: text/plain; charset="Windows-1252" If you are using CQ for development purposes only, then there is no harm creating two HTTP servers, one for development stuff you put on file-system, and one for 'production' running on the Modules database. One more HTTP server does not add much load to the system.. ;-) > 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 1199 http://www.daidalos.nl/ KvK 27164984 De informatie - verzonden in of met dit emailbericht - is afkomstig van Daidalos BV en is uitsluitend bestemd voor de geadresseerde. Indien u dit bericht onbedoeld hebt ontvangen, verzoeken wij u het te verwijderen. Aan dit bericht kunnen geen rechten worden ontleend. > From: Florent Georges [mailto:[email protected]] > Sent: vrijdag 6 maart 2009 12:09 > To: General Mark Logic Developer Discussion; Geert Josten > Subject: Re: [MarkLogic Dev General] Edit library modules > through WebDAV? > > > Geert Josten wrote: > > > To my personal opinion you are better off putting the > libraries in the > > Modules database. Note that you can use the Security layer of > > MarkLogic Server to apply that to the modules themselves as well, > > giving for instance only specific roles execute rights on specific > > libraries. You cannot do that when you put them on the file system. > > Yes, that's what I thought for a while, and you convinced > me. I must admit that if I didn't do it before, it is only > because I didn't find a way to install CQ unless on the file > system :-$. > > I will first look again for that info, because I can't > afford to not have CQ anymore, then I'll switch the modules > to the Modules database. > > Thank you for the comments, regards, > > -- > Florent Georges > http://www.fgeorges.org/ > > > > > > > > > > > > > > > > > > > > > > > > > ------------------------------ Message: 8 Date: Fri, 6 Mar 2009 14:22:54 +0000 (GMT) From: Florent Georges <[email protected]> Subject: Re: [MarkLogic Dev General] Edit library modules through WebDAV? To: General Mark Logic Developer Discussion <[email protected]>, Geert Josten <[email protected]> Message-ID: <[email protected]> Content-Type: text/plain; charset=utf-8 Geert Josten wrote: > If you are using CQ for development purposes only, then > there is no harm creating two HTTP servers, one for > development stuff you put on file-system, and one for > 'production' running on the Modules database. One > more HTTP server does not add much load to the system.. Yes, especially given that there is no production env by there ;-). But then, back to my initial problem if I am right? Either I install CQ on the Modules database (but I don't know how) or I can't edit my module files from within oXygen (given they have to be used by "import module".) I am sure I am missing something obvious, but I have no clue... Thanks for your help, -- Florent Georges http://www.fgeorges.org/ ------------------------------ _______________________________________________ General mailing list [email protected] http://xqzone.com/mailman/listinfo/general End of General Digest, Vol 57, Issue 10 ***************************************
_______________________________________________ General mailing list [email protected] http://xqzone.com/mailman/listinfo/general
