jillesvangurp/kt-search

[FEAT] term boolean support

Closed this issue · 1 comments

Describe the enhancement

Add support to the term to accept a boolean

term(query.field, true)

Why is this needed?

Currently it only accepts strings which is a bit awkward to use when dealing with boolean values

How do you think it should be done?

Adding an additional dsl like.

fun QueryClauses.term(
    field: String,
    value: Boolean,
    block: (TermQueryConfig.() -> Unit)? = null
)

Will you be able to help with a pull request?

Yes

Sounds good, feel free to add this with a small PR.