Solutions

MarkLogic Data Hub Service

Fast data integration + improved data governance and security, with no infrastructure to buy or manage.

Learn More

Learn

Stay On Top Of Everything MarkLogic

Be the first to know! News, product information, and events delivered straight to your inbox.

Sign Me Up

Community

Stay On Top Of Everything MarkLogic

Be the first to know! News, product information, and events delivered straight to your inbox.

Sign Me Up

Company

Stay On Top Of Everything MarkLogic

Be the first to know! News, product information, and events delivered straight to your inbox.

Sign Me Up

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 4.1.1 zip package (compatible with MarkLogic 9) 14MB(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 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.

Comments

The commenting feature on this page is enabled by a third party. Comments posted to this page are publicly visible.
  • 4.0.4 still not availble on jcenter or mavenCentral
    • The Java Client API is only published through Maven Central. You need to include the jcenter repo in your pom.xml to pick up one of the external dependencies that is only published via jcenter.
  • For version 2.0.5 the artifactId is java-client-api