code | type | title | description |
---|---|---|---|
true |
page |
exists |
Checks if a document exists |
Checks if a document exists.
:::: tabs ::: tab Java
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 |
Returns a boolean.
<<< ./snippets/exists-java.java
::: ::: tab Kotlin
fun exists(
index: String,
collection: String,
id: String): CompletableFuture<Boolean>
Arguments | Type | Description |
---|---|---|
index |
String |
Index |
collection |
String |
Collection |
id |
String |
Document ID |
Returns a boolean.
<<< ./snippets/exists-kotlin.kt
::: ::::