Skip to content

Commit 30343fd

Browse files
authored
Merge pull request #3353 from liyun95/v2.6.x
update geo docs
2 parents 690e7b4 + e37516e commit 30343fd

File tree

2 files changed

+11
-9
lines changed

2 files changed

+11
-9
lines changed

site/en/userGuide/schema/geometry-field.md

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -344,19 +344,21 @@ Once these requirements are met, you can use expressions with dedicated geometry
344344

345345
#### Define filter expressions
346346

347-
To filter on the `GEOMETRY` field, use a geometry-specific operator with the following expression format: `"{operator}(geo_field,'{wkt}')"`, where:
347+
To filter on a `GEOMETRY` field, use a geometry operator in an expression:
348348

349-
- `{operator}` is a supported geometry operator (e.g., `ST_CONTAINS`, `ST_INTERSECTS`). For a full list of available operators, refer to [Geometry Operators](geometry-operators.md).
349+
- General: `{operator}(geo_field, '{wkt}')`
350350

351-
- `geo_field` is the name of the `GEOMETRY` field defined in your collection schema.
351+
- Distance-based: `ST_DWITHIN(geo_field, '{wkt}', distance)`
352352

353-
- `'{wkt}'` is the WKT string representing the geometry object you are filtering on.
353+
Where:
354354

355-
<div class="alert note">
355+
- `operator` is one of the supported geometry operators (e.g., `ST_CONTAINS`, `ST_INTERSECTS`). Operator names must be all uppercase or all lowercase. For a list of supported operators, refer to [Supported geometry operators](geometry-operators.md#Supported-geometry-operators).
356356

357-
Some operators, such as `ST_DWITHIN`, may require additional parameters. For details and usage examples of each operator, refer to [Geometry Operators](geometry-operators.md).
357+
- `geo_field` is the name of your `GEOMETRY` field.
358358

359-
</div>
359+
- `'{wkt}'` is the WKT representation of the geometry to query.
360+
361+
- `distance` is the threshold specifically for `ST_DWITHIN`.
360362

361363
The following examples demonstrate how to use different geometry-specific operators in a filter expression:
362364

site/en/userGuide/search-query-get/boolean/geometry-operators.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@ Milvus supports a set of operators for spatial filtering on `GEOMETRY` fields, w
1111

1212
All geometry operators function by taking two geometric arguments: the name of the `GEOMETRY` field defined in your collection schema and a target geometry object represented in [Well-Known Text](https://en.wikipedia.org/wiki/Well-known_text_representation_of_geometry) (WKT) format.
1313

14-
To learn more about `GEOMETRY` fields in Milvus, refer to [Geometry Field](geometry-field.md).
15-
1614
## Use syntax
1715

1816
To filter on a `GEOMETRY` field, use a geometry operator in an expression:
@@ -31,6 +29,8 @@ Where:
3129

3230
- `distance` is the threshold specifically for `ST_DWITHIN`.
3331

32+
To learn more about `GEOMETRY` fields in Milvus, refer to [Geometry Field](geometry-field.md).
33+
3434
## Supported geometry operators
3535

3636
The following table lists the geometry operators available in Milvus.

0 commit comments

Comments
 (0)