Skip to content

Commit

Permalink
Restrict wildcard query to string fields (#266)
Browse files Browse the repository at this point in the history
Co-authored-by: Arnold Lacko <[email protected]>
  • Loading branch information
arnoldlacko and Arnold Lacko authored Jun 24, 2023
1 parent 5ced9c9 commit beb1fca
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -766,7 +766,7 @@ object ElasticQuery {
* @return
* an instance of [[zio.elasticsearch.query.WildcardQuery]] that represents the wildcard query to be performed.
*/
final def wildcard[S](field: Field[S, _], value: String): Wildcard[S] =
final def wildcard[S](field: Field[S, String], value: String): Wildcard[S] =
Wildcard(field = field.toString, value = value, boost = None, caseInsensitive = None)

/**
Expand Down

0 comments on commit beb1fca

Please sign in to comment.