SDK
SDK Java v3.x
2

This SDK is deprecated. We recommend to use the Kuzzle SDK-JVM.
A migration guide is available here

exists #

Checks if a document exists.


Arguments #

Copied to clipboard!
public CompletableFuture<Boolean> exists(
      final String index,
      final String collection,
      final String id)
throws NotConnectedException, InternalException


Arguments Type Description
index
String
Index
collection
String
Collection
id
String
Document ID

Return #

Returns a boolean.

Usage #

Copied to clipboard!
Boolean result = kuzzle
  .getDocumentController()
  .exists("nyc-open-data", "yellow-taxi", "some-id")
  .get();