MarkLogic JavaScript Node.js and Widget API version 0.8 now available…

I’ve just released version 0.8 of MLJS, the Node.js and Browser Widget API I’ve created for MarkLogic server. Read on for details…

As I’ve recently alluded to, this is the biggest version I’ve created. It was meant to be a June release, and is now an August release!

There have been many improvements. Some of these have been for demonstrations I’ve done in my role as a Senior Pre-Sales Engineer at MarkLogic UK, others are features to close the gap with the OOTB Visualisation Widgets in MarkLogic’s Application Builder.

The biggest changes are around how a search is orchestrated or shared between visual widgets, or indeed components of a Node.js application. On the visual side, I’ve added a co-occurence widget in pure HTML+JS. Previously we’ve used an aging shockwave flash component to do this. I’ve also added version 7 widgets to allow semantic enrichment and search on the Early Access version of MarkLogic Server which is due to be released in September/October.

I’ve added a pie chart to the list of chart options, and allowed charts to use facet information rather than just introspecting JSON document results.

I’ve also created an extensive Search Options builder helper object. This means you won’t have to understand any of the JSON structure of a MarkLogic options object – just call simple methods on an object and the JSON configuration will be created for you!

I’ve also added default rendering support for all XML, SVG, JSON, XHTML, plain text and snippet results in the search results widget. This makes standing up a new search demo very easy, and without requiring an XSLT transform as would normally be the case.

I’ve also extended this to check for common result title and summary elements in the JSON and XML documents that are returned. Examples include title, name, summary, synopsis, description.

I’ve also fixed the more… all… and less… links on the facets widget, and reworked the search sorter widget to have more useful options for sorting.

Documentation has also been updated and extended, with all new core functions documented (widget functions coming soon…), and builds for download and npm node.js packages updated.

You can get the Node.js version by typing npm install mljs (which replaces the older mldb package), or download the sample app, get it from GitHub, or download one of the distribution packages.

Documentation is available on the dedicated site, with other related information available on the WIKI.

Please comment on this page if you think it’s cool!

3 comments

  1. Hey Adam, I am presenting on the ML REST API in October at a local conference and am using MLJS specifically to demonstrate a javascript implementation of the API. Could I use some of the images and content from your blog/MLJS documentation to include in the presentation? You of course will be attributed as creator and owner of all such content. Thanks

    1. Hey, Sure no problem at all. The more people aware of it and using it the better. It seems to have gained a lot of interest in the last month since I released a major upgrade, so feel free. You may want to mention the Sparql widgets in particular given that ML7 may well be out in October too. Let me know how the conference goes.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.