Skip to content

Commit 34e898b

Browse files
Fix heading levels in geoshape query documentation (#8198) (#8200)
1 parent 186e168 commit 34e898b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

_query-dsl/geo-and-xy/geoshape.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,15 +26,15 @@ Relation | Description | Supporting geographic field type
2626

2727
## Defining the shape in a geoshape query
2828

29-
You can define the shape to filter documents in a geoshape query either by providing a new shape definition at query time or by referencing the name of a shape pre-indexed in another index.
29+
You can define the shape to filter documents in a geoshape query either by [providing a new shape definition at query time](#using-a-new-shape-definition) or by [referencing the name of a shape pre-indexed in another index](#using-a-pre-indexed-shape-definition).
3030

31-
### Using a new shape definition
31+
## Using a new shape definition
3232

3333
To provide a new shape to a geoshape query, define it in the `geo_shape` field. You must define the geoshape in [GeoJSON format](https://geojson.org/).
3434

3535
The following example illustrates searching for documents containing geoshapes that match a geoshape defined at query time.
3636

37-
#### Step 1: Create an index
37+
### Step 1: Create an index
3838

3939
First, create an index and map the `location` field as a `geo_shape`:
4040

@@ -423,7 +423,7 @@ GET /testindex/_search
423423
Geoshape queries whose geometry collection contains a linestring or a multilinestring do not support the `WITHIN` relation.
424424
{: .note}
425425

426-
### Using a pre-indexed shape definition
426+
## Using a pre-indexed shape definition
427427

428428
When constructing a geoshape query, you can also reference the name of a shape pre-indexed in another index. Using this method, you can define a geoshape at index time and refer to it by name at search time.
429429

0 commit comments

Comments
 (0)