[FEAT] term boolean support
Closed this issue · 1 comments
cdekok commented
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
jillesvangurp commented
Sounds good, feel free to add this with a small PR.