Thursday, 30 September 2010

MarkLogic: Creating Multiple Range Element Indexes

Here's a quick script to create multiple element range indexes on a MarkLogic database, just set the $db-name variable:


Then pass in a sequence of xs:strings or a single xs:string like so:


For each index, it will report back whether the index was successfully created or not, like so:

Or:

No comments: