NOTE: You are looking at documentation for an older release. For the latest information, see the current release documentation.
Span queries are low-level positional queries which provide expert control over the order and proximity of the specified terms. These are typically used to implement very specific queries on legal documents or patents.
Span queries cannot be mixed with non-span queries (with the exception of the span_multi query).
See the Elasticsearch documentation on Span queries for more details.