lib/Elastica/QueryBuilder/DSL/Query.php
public function span_first($match = null, int $end = null): SpanFirst
    {
        return new SpanFirst($match, $end);
    }
public function span_first($match = null, int $end = null): SpanFirst
    {
        return new SpanFirst($match, $end);
    }
public function span_first ( $ match = null , int $ end = null ) : SpanFirst { return new SpanFirst ( $ match , $ end ) ; }
span first query.

@param AbstractQuery|array $match
@param int                 $end

@return SpanFirst

@see https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-span-first-query.html
span first query .