shouldAtLeastOneOf

fun <T> shouldAtLeastOneOf(values: Collection<T>?, block: QueryVariantDsl.(T) -> Unit)

Creates a nested BoolQuery inside the current typed occurrence of the BoolQueryDsl

If the collection is empty or null, current BoolQuery is not modified.

For each non-empty value in the collection values, offers a QueryVariantDsl callback allowing to add QueryVariant to the should occurrence of the nested BoolQuery.

should query-variants are added in a nested BoolQuery to ensure that at least one of the QueryVariant is a match.

see Using  minimum_should_match