Skip to content

Commit f83cd3d

Browse files
kolchfa-awsepugh
authored andcommitted
Fix heading levels in geoshape query documentation (opensearch-project#8198)
* Fix heading levels in geoshape query documentation Signed-off-by: Fanit Kolchina <[email protected]> * One more Signed-off-by: Fanit Kolchina <[email protected]> --------- Signed-off-by: Fanit Kolchina <[email protected]> Signed-off-by: Eric Pugh <[email protected]>
1 parent f902f02 commit f83cd3d

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
@@ -25,15 +25,15 @@ Relation | Description | Supporting geographic field type
2525

2626
## Defining the shape in a geoshape query
2727

28-
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.
28+
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).
2929

30-
### Using a new shape definition
30+
## Using a new shape definition
3131

3232
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/).
3333

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

36-
#### Step 1: Create an index
36+
### Step 1: Create an index
3737

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

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

425-
### Using a pre-indexed shape definition
425+
## Using a pre-indexed shape definition
426426

427427
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.
428428

0 commit comments

Comments
 (0)