terminateAfter

fun terminateAfter(terminateAfter: Int?): T

Sets a maximum number of matched documents per shard after which the query should be terminated.

See also