FilterBuilder

DSL for a Filter's four clauses: must, should, mustNot, minShould.

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
fun minShould(minCount: Int, configure: ClauseBuilder.() -> Unit)

At least minCount of the listed conditions must match. May be set once per filter.

Link copied to clipboard
fun must(configure: ClauseBuilder.() -> Unit)

All listed conditions must match (AND). Repeatable — conditions accumulate.

Link copied to clipboard
fun mustNot(configure: ClauseBuilder.() -> Unit)

No listed condition may match (NOR). Repeatable — conditions accumulate.

Link copied to clipboard
fun should(configure: ClauseBuilder.() -> Unit)

At least one listed condition must match (OR). Repeatable — conditions accumulate.