Skip to content

Commit

Permalink
fix warning and actually do something with the param
Browse files Browse the repository at this point in the history
  • Loading branch information
jillesvangurp committed Apr 26, 2024
1 parent d2a3d82 commit f5a471d
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,9 @@ open class Field(name: String) : ESQuery(name) {
var tagsSchema by queryDetails.property<String>()
var type by queryDetails.property<Type>()

fun matchedFields(vararg matchedFields: String) = queryDetails.getOrCreateMutableList("matched_fields")
fun matchedFields(vararg matchedFields: String) = queryDetails.getOrCreateMutableList("matched_fields").also {
it.addAll(matchedFields)
}
}

class Highlight : Field("highlight") {
Expand Down

0 comments on commit f5a471d

Please sign in to comment.