MarkLogic Java API

Duke The MarkLogic Java Client API provides access to core MarkLogic database and search functionality. It allows Java developers to get going quickly, enabling them to re-use existing knowledge, skills, libraries, tools, and development environments.

The Java API is developed in the open on GitHub. Submit tickets and pull requests there to contribute.

Java Client API on GitHub ›

Downloads

Release 5.0.0 zip package (compatible with MarkLogic 10) 11MB(SHA1)

Maven

Dependencies

Add this repository to your pom.xml repositories section:

Gradle

Dependencies

Use gradle 1.7+ and add this to your build.gradle repositories section:

Features

The API provides interfaces for

  • Document CRUD and management, including support for
  • Query by Example
  • Full-text search, including
    • Result snippeting, paging, and facets
    • Configurable search input string parsing
    • Advanced search specification and configuration, including support for
      • Keyword, phrase, value, near, and boolean searches
      • Control of stemming, case-sensitivity, collation, and decompounding
      • Control of diacritics and punctuation handling
    • Tokenization and stemming for 13 languages
    • Spelling dictionaries and thesauri
  • Multi-statement (and multi-document) transaction management
  • Semantics
    • MarkLogic 8.0-4 and later supports Semantic queries and updates common libraries, extending these APIs for variable bindings, combination queries and other features.
    • Jena -- an Apache framework for Semantic Web and Linked Data applications
    • Sesame -- a framework for processing and handling RDF data
  • Analytics, including values and aggregates
  • Security, including
    • API-level security via seperate read, write, and administrative access control
    • Management of document-level (and collection/directory?) privileges

The Java Client API is built on top of the MarkLogic REST API.

Tutorials and Samples

Requirements

See the Getting Started section of the Java Application Developer's Guide for an introduction, including what version of Java is required.

Documentation

Older Versions

MarkLogic 9

Downloads

Release 4.2.0 zip package (compatible with MarkLogic 9) 19MB(SHA1)

Maven

Dependencies

Add this repository to your pom.xml repositories section:

Gradle

Dependencies

Use gradle 1.7+ and add this to your build.gradle repositories section:

MarkLogic 8

Downloads

Release 3.0.8 zip package (compatible with MarkLogic 8) 7.0MB(SHA1)

Maven

Dependencies
Add this repository to your pom.xml repostories section:

Gradle

Dependencies
Use gradle 1.7+ and add this to your build.gradle repositories section:

Stack Overflow iconStack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.