Robuta

https://www.elastic.co/docs/reference/query-languages/query-dsl/query-dsl-span-first-query Span first query | Elasticsearch Reference Matches spans near the beginning of a field. Here is an example: The match clause can be any other span type query. The end controls the maximum end position... span firstqueryelasticsearchreference