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.


Downloads

JAVA CLIENT API ON GITHUB ›


Major Features

  • Optic-update support
  • Document CRUD and management, including support for JSON, XML, binary, and text documents
  • Advanced full-text search, including snippeting and stemming
  • Multi-statement and multi-document transaction management
  • Supports semantic queries and updates common libraries, extending these APIs for variable bindings, combination queries and other features
  • Relational queries for use cases such as analytics
  • Security features, including role-based access control and document permissions

Getting Started

Tutorials and Examples
Requirements

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

Maven
Dependencies
<dependency>
  <groupId>com.marklogic</groupId>
  <artifactId>marklogic-client-api</artifactId>
  <version>[enter version number here, e.g. 6.0.0]</version>
</dependency>

Add this repository to your pom.xml repositories section:

<repository>
  <id>central</id>
  <name>Maven Central</name>
  <layout>default</layout>
  <url>https://repo1.maven.org/maven2</url>
  <snapshots>
    <enabled>false</enabled>
  </snapshots>
</repository>

Gradle
Dependencies
dependencies {
  compile group: 'com.marklogic', name: 'marklogic-client-api', version: '[enter version number here, e.g. 6.0.0]'
}

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

mavenCentral()

Other Versions

MarkLogic 10

Release 5.5.4 zip package (compatible with MarkLogic 10) — 12MB (SHA1)

Maven
Dependencies
<dependency>
  <groupId>com.marklogic</groupId>
  <artifactId>marklogic-client-api</artifactId>
  <version>5.5.4</version>
</dependency>

Add this repository to your pom.xml repositories section:

<repository>
  <id>central</id>
  <name>Maven Central</name>
  <layout>default</layout>
  <url>https://repo1.maven.org/maven2</url>
  <snapshots>
    <enabled>false</enabled>
  </snapshots>
</repository>

Gradle
Dependencies
dependencies {
  compile group: 'com.marklogic', name: 'marklogic-client-api', version: '5.5.4'
}

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

mavenCentral()
MarkLogic 9

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

Maven
Dependencies
<dependency>
  <groupId>com.marklogic</groupId>
  <artifactId>marklogic-client-api</artifactId>
  <version>4.2.0</version>
</dependency>

Add this repository to your pom.xml repositories section:

<repository>
  <id>jcenter</id>
  <url>http://jcenter.bintray.com</url>
</repository>
Gradle
Dependencies
dependencies {
  compile group: 'com.marklogic', name: 'marklogic-client-api', version: '4.2.0'
}

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

jcenter()

Related Resources

MarkLogic Java Client API Javadoc

Review over the Javadoc for the MarkLogic Java Client API 5.0.0.

Java Application Developer's Guide

Review over the documentation for creating Java applications in MarkLogic.

Learning the MarkLogic Java API

Walk through working with MarkLogic exclusively through its Java API.

POJOs Tutorial

In this tutorial, find out how to store and search POJOs in a MarkLogic database.

Samplestack

An example of a MarkLogic Java API application.

Top Songs

An example of a MarkLogic Java API application.

This website uses cookies.

By continuing to use this website you are giving consent to cookies being used in accordance with the MarkLogic Privacy Statement.