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: v2.5.x/site/en/userGuide/search-query-get/boolean/boolean.md
+4-4
Original file line number
Diff line number
Diff line change
@@ -18,7 +18,7 @@ Milvus supports several basic operators for filtering data:
18
18
19
19
-**Arithmetic Operators**: `+`, `-`, `*`, `/`, `%`, and `**` are used for calculations involving numeric fields.
20
20
21
-
-**Logical Operators**: `AND`, `OR`, and `NOT` combine multiple conditions into complex expressions.
21
+
-**Logical Operators**: `AND`, `OR`, and `NOT`or '&&', '||', '~', '!' combine multiple conditions into complex expressions.
22
22
23
23
### Example: Filtering by Color
24
24
@@ -34,7 +34,7 @@ filter='color in ["red", "green", "blue"]'
34
34
Milvus allows referencing keys in JSON fields. For instance, if you have a JSON field `product` with keys `price` and `model`, and want to find products with a specific model and price lower than 1,850, use this filter expression:
35
35
36
36
```python
37
-
filter='product["model"] == "JSN-087" AND product["price"] < 1850'
37
+
filter='product["model"] == "JSN-087" and product["price"] < 1850'
38
38
39
39
```
40
40
@@ -60,14 +60,14 @@ Milvus introduces filter expression templating to optimize performance when work
60
60
To find individuals over the age of 25 living in either "北京" (Beijing) or "上海" (Shanghai), use the following template expression:
61
61
62
62
```python
63
-
filter="age > 25 AND city IN ['北京', '上海']"
63
+
filter="age > 25 and city in ['北京', '上海']"
64
64
65
65
```
66
66
67
67
To improve performance, use this variation with parameters:
0 commit comments