You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: site/en/userGuide/schema/geometry-field.md
+9-7Lines changed: 9 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -344,19 +344,21 @@ Once these requirements are met, you can use expressions with dedicated geometry
344
344
345
345
#### Define filter expressions
346
346
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:
348
348
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}')`
350
350
351
-
-`geo_field` is the name of the `GEOMETRY` field defined in your collection schema.
-`'{wkt}'` is the WKT string representing the geometry object you are filtering on.
353
+
Where:
354
354
355
-
<divclass="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).
356
356
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.
358
358
359
-
</div>
359
+
-`'{wkt}'` is the WKT representation of the geometry to query.
360
+
361
+
-`distance` is the threshold specifically for `ST_DWITHIN`.
360
362
361
363
The following examples demonstrate how to use different geometry-specific operators in a filter expression:
Copy file name to clipboardExpand all lines: site/en/userGuide/search-query-get/boolean/geometry-operators.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -11,8 +11,6 @@ Milvus supports a set of operators for spatial filtering on `GEOMETRY` fields, w
11
11
12
12
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.
13
13
14
-
To learn more about `GEOMETRY` fields in Milvus, refer to [Geometry Field](geometry-field.md).
15
-
16
14
## Use syntax
17
15
18
16
To filter on a `GEOMETRY` field, use a geometry operator in an expression:
@@ -31,6 +29,8 @@ Where:
31
29
32
30
-`distance` is the threshold specifically for `ST_DWITHIN`.
33
31
32
+
To learn more about `GEOMETRY` fields in Milvus, refer to [Geometry Field](geometry-field.md).
33
+
34
34
## Supported geometry operators
35
35
36
36
The following table lists the geometry operators available in Milvus.
0 commit comments