Re: [MarkLogic Dev General] Will http-get support proxies in ML 5.0 ?

2011-09-22 Thread Nuno Job
This issue has been raised before and is being closely followed up by MarkLogic. I've added these notes to our internal tracking system. Thanks for the feedback Geert, Jim, Jakob. As for what will be in the next release of MarkLogic I think we have to wait, it's very unlikely anyone would comment

[MarkLogic Dev General] See you in London!

2011-09-12 Thread Nuno Job
Hi! Many MarkLogicians will be attending the upcoming London MarkLogic User Group meeting on Sept 15. Norm Walsh will be speaking, I'll be attending. Hope to see a lot of familiar faces there! :) For more details please visit: http://www.meetup.com/muglondon/events/30554021/ Thank you, and

Re: [MarkLogic Dev General] Wiki markup parser in XQuery?

2011-09-10 Thread Nuno Job
That's an interesting idea. Implement markdown in XQuery. Sounds like a fun weekend project. :) Nuno On Sun, Sep 11, 2011 at 2:57 AM, seme...@hotmail.com seme...@hotmail.com wrote: Anyone know of a Wiki markup parser written in XQuery? Haven't found one from my searching. Thanks, Ryan

Re: [MarkLogic Dev General] Locking in Marklogic

2011-08-08 Thread Nuno Job
In MarkLogic you have ACID transactions for free - you don't have to implement code to ensure consistency. For performance reasons we separate processing queries from updates in MarkLogic. Queries run in timestamped mode, meaning they have a read consistent view of the database at a given point

[MarkLogic Dev General] Rewrite in the wild

2011-08-03 Thread Nuno Job
Hi all, I've noticed that plenty of you are using the rewritw REST library. I've been loving the feedback so far and am very thankful for it :) However If you made modifications to rewrite that you think would be beneficial to the framework I would ask you to contribute it back. This way

Re: [MarkLogic Dev General] Cannot apply an update function from a query

2011-07-30 Thread Nuno Job
apply-in-new-transaction-invoker.xqy: - declare namespace aint = apply-in-new-transaction; declare option xdmp:update true; declare variable $aint:function as xdmp:function external; declare variable $aint:params as item()* external;

[MarkLogic Dev General] MarkLogic Event: Today at 6PM In New York City

2011-07-27 Thread Nuno Job
Hi All, If you are interested in the upcoming 5.0 features and live in the NYC area you might be interested in this event: http://www.meetup.com/ny-mug Currently one spot remaining so feel free to email one of the organizers if you would like to attend but the meetup is full :) Nuno What's

Re: [MarkLogic Dev General] MarkLogic Event: Today at 6PM In New York City

2011-07-27 Thread Nuno Job
? J ** ** Kind regards, Geert ** ** *Van:* general-boun...@developer.marklogic.com [mailto: general-boun...@developer.marklogic.com] *Namens *Nuno Job *Verzonden:* woensdag 27 juli 2011 9:54 *Aan:* General Mark Logic Developer Discussion *Onderwerp:* [MarkLogic Dev General

[MarkLogic Dev General] NOVAMUG Meeting in Reston, VA

2011-07-26 Thread Nuno Job
Hi Guys, If you are interested in the upcoming features of MarkLogic 5.0 you should attend the next NOVAMUG user group meeting. Sign up, RSVP or simply more details at: http://www.meetup.com/Mark-Logic-User-Group/events/26538451/ Thank you, Nuno What's new in MarkLogic Server 5.0? Wednesday,

[MarkLogic Dev General] DenMARK Meetup: Managing Large Binary Files in MarkLogic, Today and Tomorrow

2011-07-04 Thread Nuno Job
Hi, On the 12th of July we will be hosting a meeting in Denver, CO about Large Binary files in MarkLogic Server. Dipti Borkar, Senior Product Manager at MarkLogic, will be speaking and will guide you thru the enhancements made in MarkLogic Server 5.0 to deal with large binary files. The meetup is

Re: [MarkLogic Dev General] Efficient iterating over values from a large lexicon

2011-06-02 Thread Nuno Job
An example of what Michael said would be use element values with option frequency order and cts:frequency. You might be assuming we can't do something that we are perfectly optimized to do. If that's not the case the recommendations on spawn and corb make sense. As for spawn with an update: just

Re: [MarkLogic Dev General] REST API

2011-05-25 Thread Nuno Job
Hi Paul, I might be wrong but I think the rest module that is defined in that lab is still not in the product nor open-sourced. After reading what is suggested by Geert you can use rewrite ( http://github.com/dscape/rewrite) to handle your rules. It's an community maintained open-source project

Re: [MarkLogic Dev General] Bug in in-mem-update

2011-04-15 Thread Nuno Job
Hi Ryan, For commons, make your changes and make a pull request. Someone in MarkLogic will review your changes! Thanks, Nuno On Fri, Apr 15, 2011 at 5:19 AM, Geert Josten geert.jos...@daidalos.nlwrote: Hi Ryan, I’d say, contact supp...@marklogic.com. They can file it as a bug for you.

Re: [MarkLogic Dev General] XDMP-ELEMATTRRIDXNOTFOUND Even when index is present.

2011-03-28 Thread Nuno Job
Check (both in the query and admin ui): - if the namespace is correct and matches query - if element name is correct and matches query - if collation is correct and matches. If all of this is true then just wait for the reindexing to be complete. You can check that in the database status page in

[MarkLogic Dev General] Announcing rewrite : URL rewriting made simple in MarkLogic Server

2011-03-25 Thread Nuno Job
Hi all, I would like to announce the 0.1 release of rewrite. rewrite is an implementation of MarkLogic's URL Rewriter for HTTP Application Servers. rewrite aims to provide an expressive language that allows you to specify REST applications. rewrite is heavily inspired in Ruby on Rails, so if you

Re: [MarkLogic Dev General] xquery

2011-03-12 Thread Nuno Job
Example of a shell script invoking with cURL: https://github.com/dscape/app-installer/blob/master/ml-install On Sat, Mar 12, 2011 at 1:49 AM, Eric Bloch eric.bl...@marklogic.comwrote: I'm not sure what you're asking, but you might wanna look at http://developer.marklogic.com/code/cqsh or David

Re: [MarkLogic Dev General] prepend the xmlversion identifier with the resulted xml

2011-02-28 Thread Nuno Job
This should do the trick: document { result lst name=first elem11/elem1 elem22/elem2 /lst /result } Case you are interested about creating other PIs (or comments): document { comment {'now this is a comment'}, processing-instruction pi { 'textual content' },

Re: [MarkLogic Dev General] Marklogic XQuery optimization checklist or standards

2011-02-28 Thread Nuno Job
Hi Vedavalli, cts:contains and fn:contains are not the same function. cts:contains is word matching (including stemming etc) and fn:contains is, as defined in the standard, substring matching. I don't know of any code review checklist. Nuno On Mon, Feb 28, 2011 at 10:46 AM, Vedavalli Radhika

Re: [MarkLogic Dev General] Marklogic XQuery optimization checklist or standards

2011-02-28 Thread Nuno Job
Hi Vedavalli, We cover transactions extensibly in the MarkLogic Server Administration classes provided by MarkLogic University. Feel free to check http://www.marklogic.com/services/training.html for more details, Thanks, Nuno On Mon, Feb 28, 2011 at 11:34 AM, Vedavalli Radhika

[MarkLogic Dev General] Announcing mustache.xq : Simple templating with JSON and XQuery

2011-02-17 Thread Nuno Job
Hi, I'm happy to announce mustache.xq, a mustache implementation in XQuery. Mustache is a framework-agnostic way to render logic-free views. For more information, examples etc please refer to: https://github.com/dscape/mustache.xq It's an open source project so contributions are welcome :)

Re: [MarkLogic Dev General] Alternate for wildcard search

2011-02-16 Thread Nuno Job
Just in case this is an autocomplete: there is a limit option (something like limit=5) that will hasten your query. Nuno On Feb 16, 2011 2:53 PM, Geert Josten geert.jos...@daidalos.nl wrote: Hi Mano, The exception is caused by the large number of User elements. You try to display them all.

Re: [MarkLogic Dev General] xdmp:document-set-property function does not work?

2011-01-14 Thread Nuno Job
Hi John, Might be a silly question but I don't understand why you want to update last-modified? It is kept automatically by MarkLogic when you set keep last modified for your database in the administration console. You don't need to write any extra code to support that. Would be easier to help

Re: [MarkLogic Dev General] How to see debug logs in log file

2011-01-04 Thread Nuno Job
You probably need to set the appropriate level of logging (in this case Debug) in the MarkLogic Admin Interface (port: 8001). I think that's under each Group, if only one it should be default. Also if you didn't change the setting and you simply do xdmp:log(a message) then a message should appear

Re: [MarkLogic Dev General] 302 redirect response

2010-11-30 Thread Nuno Job
Try xdmp:set-response-code() http://developer.marklogic.com/pubs/3.2/apidocs/AppServerBuiltins.html#set-response-code Nuno On Tue, Nov 30, 2010 at 8:56 PM, Stewart Shelline shellin...@ldschurch.orgwrote: Is there any way to use xdmp:redirect-response() to send a response code of 302? Or is

Re: [MarkLogic Dev General] 302 redirect response

2010-11-30 Thread Nuno Job
of a 302: let $new-page := redirectee.xqy return (xdmp:set-response-code( 302, Moved permanently ), xdmp:redirect-response( $new-page )) *From:* general-boun...@developer.marklogic.com [mailto: general-boun...@developer.marklogic.com] *On Behalf Of *Nuno Job *Sent:* Tuesday

Re: [MarkLogic Dev General] question about document-load

2010-10-09 Thread Nuno Job
Hi Helen, Not sure if this is the officially recomended aproach but it should work: xdmp:document-load('/test.xml', options xmlns=xdmp:document-load collections { for $c in xdmp:document-get-collections('/test.xml') return collection {$c} /collection} /collections /options Nuno

Re: [MarkLogic Dev General] bounty hunting - lexer for pygments on github.com

2010-10-01 Thread Nuno Job
I've put the code up on github.com (how appropriate since github uses pygments) and it is available for perusal. I still plan on making it better. It's a hard problem to solve well. Thanks Michael for the motivation to do it right. Actually that's one of the reasons for the bounty - XQuery

Re: [MarkLogic Dev General] Facet using cts:search() result

2010-08-24 Thread Nuno Job
Hi Jonna, Justin gave you the solution. This a little something extra we did one occasion in a MarkLogic Essentials class to respond to this question: - http://gist.github.com/343528 (see listing 8) Dont know if you attended the class but case you did you can try this out. Also if anyone is

Re: [MarkLogic Dev General] xdmp:document-load - possible bug?

2010-08-16 Thread Nuno Job
Hi Jacob, I wonder if I would call that a bug: What if you want to store the error? Anyway: I'm sure you can do: let $url := http://www.marklogic.com; let $request := xdmp:http-get( $url ) let $headers := $request[1] let $body:= $request[2] return if (

Re: [MarkLogic Dev General] MarkLogic Certifications

2010-08-05 Thread Nuno Job
Hi Sunil, For updates regarding a certification program please contact train...@marklogic.com. Thank you, Nuno Job On Thu, Aug 5, 2010 at 9:24 AM, Sunil Reddy sunil.re...@rave-tech.comwrote: Hi All, Are there any certification exams availablefor MarkLogic professionals (Developers

Re: [MarkLogic Dev General] Loading just the doc uri using fn:docfunction..

2010-07-14 Thread Nuno Job
If using base-uri you can use the XPath only alternative : doc()/base-uri(.) Nuno On Wed, Jul 14, 2010 at 3:44 PM, Geert Josten geert.jos...@daidalos.nlwrote: Hi Varinder, The suggestions for cts:uris and base-uri are good, as well as the hint to use pagination is you have lots of docs in

Re: [MarkLogic Dev General] good practice database design question

2010-07-10 Thread Nuno Job
Denormalize to the document granurity is a good choice and a nice first aproach. Example if you are modeling a book author information and chapters of twilight eclipse could be in the eclipse.xml file. Nuno On Jul 10, 2010 11:48 PM, Jakob Fix jakob@gmail.com wrote: Hi, I'm wondering what

Re: [MarkLogic Dev General] Search Question re:Fragments

2010-04-08 Thread Nuno Job
Hi Adam, Can you please complement that informatiom by saying how big are tjose documents? (max, min, avg) Also whats the distribution of the size for the elements you displayed here? Finally why do you think you need fragmentation? That will help me (and others) giving you a decent enough

Re: [MarkLogic Dev General] Hot Swapping large data sets.

2010-03-17 Thread Nuno Job
Hi Lee, You mentioned you wanted to group things in sets. A collection is a set, so as Wayne said you can probably take a lot of advantage of using collections (they are lightweight and indexed by MarkLogic Server). I don't know how you are ingesting the data but assuming recordLoader or

Re: [MarkLogic Dev General] RE: logout from IE

2010-03-10 Thread Nuno Job
What about IE 6? Any solutions ? Nuno On Wed, Mar 10, 2010 at 7:10 PM, Sam Neth sam.n...@marklogic.com wrote: HTTP authentication is not cookie based, which is not to say that Microsoft wouldn't choose to call cached credentials cookies, or lump clearing them into an option to clear