prefix

fun prefix(prefix: String, field: String = "_all"): SearchQuery

A Prefix query

Searches for terms that start with prefix.

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

See also