requireResultAtLeast

abstract fun requireResultAtLeast(minCount: Int, retryIfMissing: Boolean = true, retryTimeout: Duration = Duration.ofMinutes(1))

Sets a minimum count for search results.

Parameters

minCount

The minimum expected count of the searched results.

retryIfMissing

If the value is true, try again when the count of searched results is less than minCount, otherwise throw an exception.

retryTimeout

Retry timeout when retryIfMissing is true.