mirror of
https://github.com/elastic/elasticsearch.git
synced 2025-06-28 17:34:17 -04:00
* delete asciidoc files
* add migrated files
* fix errors
* Disable docs tests
* Clarify release notes page titles
* Revert "Clarify release notes page titles"
This reverts commit 8be688648d
.
* Comment out edternal URI images
* Clean up query languages landing pages, link to conceptual docs
* Add .md to url
* Fixes inference processor nesting.
---------
Co-authored-by: Liam Thompson <32779855+leemthompo@users.noreply.github.com>
Co-authored-by: Liam Thompson <leemthompo@gmail.com>
Co-authored-by: Martijn Laarman <Mpdreamz@gmail.com>
Co-authored-by: István Zoltán Szabó <szabosteve@gmail.com>
36 lines
818 B
Markdown
36 lines
818 B
Markdown
---
|
|
navigation_title: "Span containing"
|
|
mapped_pages:
|
|
- https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-span-containing-query.html
|
|
---
|
|
|
|
# Span containing query [query-dsl-span-containing-query]
|
|
|
|
|
|
Returns matches which enclose another span query. Here is an example:
|
|
|
|
```console
|
|
GET /_search
|
|
{
|
|
"query": {
|
|
"span_containing": {
|
|
"little": {
|
|
"span_term": { "field1": "foo" }
|
|
},
|
|
"big": {
|
|
"span_near": {
|
|
"clauses": [
|
|
{ "span_term": { "field1": "bar" } },
|
|
{ "span_term": { "field1": "baz" } }
|
|
],
|
|
"slop": 5,
|
|
"in_order": true
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
```
|
|
|
|
The `big` and `little` clauses can be any span type query. Matching spans from `big` that contain matches from `little` are returned.
|
|
|