wildcard

fun wildcard(term: String, field: String = "_all"): SearchQuery

A Wildcard query

A wildcard query uses a wildcard expression to search within individual terms for matches. Wildcard expressions can be any single character (?) or zero to many characters (*). Wildcard expressions can appear in the middle or end of a term, but not at the beginning.

NOTE: This is a non-analytic query, meaning it won’t perform any text analysis on the query text.

See also