custom

fun custom(customizer: MutableMap<String, Any?>.() -> Unit): SearchQuery

Escape hatch for specifying a custom query condition supported by Couchbase Server but not by this version of the SDK.

The customizer lambda populates a map that gets converted to JSON.

Example:

val query = custom {
put("wildcard", "foo?ball)
put("field", "sport")
}

yields the query JSON:

{
"wildcard": "foo?ball",
"field": "sport"
}