Closed AndreasVolkmann closed 7 years ago
@goreRatzete: Here's how to achieve that with the current API
val query = bool {
must = terms.map { (key, value) ->
match {
key to {
query = value
fuzziness = Fuzziness.AUTO
}
}
}
}
Hi there,
I just tried building a bool query like so:
However, it only renders the last
match
in the Map, instead of all.I changed the
BoolData.must()
to the following to make it work: