Skip to content

Latest commit

 

History

History
78 lines (52 loc) · 1.64 KB

index.md

File metadata and controls

78 lines (52 loc) · 1.64 KB
code type title description
true
page
exists
Checks if a document exists

exists

Checks if a document exists.


:::: tabs ::: tab Java

Arguments

public CompletableFuture<Boolean> exists(
      String index,
      String collection,
      String id)
throws NotConnectedException, InternalException

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

Return

Returns a boolean.

Usage

<<< ./snippets/exists-java.java

::: ::: tab Kotlin

Arguments

fun exists(
      index: String,
      collection: String,
      id: String): CompletableFuture<Boolean>

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

Return

Returns a boolean.

Usage

<<< ./snippets/exists-kotlin.kt

::: ::::