When dealing with literals, the `startsWith` function can be translated to a [prefix query](https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-prefix-query.html) and fallback to a script only when dealing with a scalar.
When dealing with literals, the
startsWithfunction can be translated to a prefix query and fallback to a script only when dealing with a scalar.