copy

fun copy(key: String = this.key, value: JsonQueryValue = this.value, mode: ResultMode = this.mode, nested: NestedHits = this.nested, limit: Int = this.limit, maxBytes: Long = this.maxBytes, after: Cursor? = this.after, type: String? = this.type, order: SearchOrder = this.order): KeyValueQuery(source)

This query with the given settings changed; the result is validated like a new instance.