Using a Custom Facet to Aggregate Values

mimetype

MarkLogic’s Search API makes it easy to create search facets–all you need to do is declare an index on a specific element, then add an option to your search request specifying that the element should be used as a facet. However, sometimes this standard approach is not good enough and you need to create a [...]

Calling .NET code from XQuery

As I mentioned in a blog post several weeks ago, I have been working on a way to call .NET code directly from MarkLogic. My goal is to be able to access the functionality of existing .NET assemblies so that I don’t need to spend time re-implementing any logic in XQuery. Some typical use cases [...]

Creating MLJAM for .NET

XQuery is a powerful language. Add MarkLogic-specific extension functions and constructs and there is very little you can’t do all in XQuery. But, of course, sometimes you do find things you can’t accomplish–like generating a GUID value. Or let’s say you have a lot of business logic already implemented in a programming language like Java [...]

Elegant “contentEditable” Solution for XML

If you’ve ever wanted to do WYSIWYG editing of XML in a browser, I think you’re going to like the elegant solution I stumbled across.  The idea actually culminated from reading Kurt Cagle’s excitement around XQuery in the Browser, and my desire to create a MLUC DemoJam entry that could excite publishers about my latest [...]