class Elasticsearch::DSL::Search::Queries::SpanFirst

A query which returns documents having spans in the beginning of the field

@example

search do
  query do
    span_first match: { span_term: { title: 'disaster' } }, end: 10
  end
end

@see www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-span-first-query.html @see lucene.apache.org/core/5_0_0/core/org/apache/lucene/search/spans/package-summary.html