Skip to content

Commit 362ddd0

Browse files
Milvus-doc-botMilvus-doc-bot
Milvus-doc-bot
authored and
Milvus-doc-bot
committed
Release new docs to master
1 parent 0bfba0e commit 362ddd0

File tree

1 file changed

+4
-4
lines changed
  • v2.5.x/site/en/userGuide/search-query-get/boolean

1 file changed

+4
-4
lines changed

v2.5.x/site/en/userGuide/search-query-get/boolean/boolean.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ Milvus supports several basic operators for filtering data:​
1818

1919
- **Arithmetic Operators**: `+`, `-`, `*`, `/`, `%`, and `**` are used for calculations involving numeric fields.​
2020

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.​
2222

2323
### Example: Filtering by Color​
2424

@@ -34,7 +34,7 @@ filter='color in ["red", "green", "blue"]'​
3434
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:​
3535

3636
```python
37-
filter='product["model"] == "JSN-087" AND product["price"] < 1850'
37+
filter='product["model"] == "JSN-087" and product["price"] < 1850'
3838

3939
```
4040

@@ -60,14 +60,14 @@ Milvus introduces filter expression templating to optimize performance when work
6060
To find individuals over the age of 25 living in either "北京" (Beijing) or "上海" (Shanghai), use the following template expression:​
6161

6262
```python
63-
filter = "age > 25 AND city IN ['北京', '上海']"
63+
filter = "age > 25 and city in ['北京', '上海']"
6464

6565
```
6666

6767
To improve performance, use this variation with parameters:​
6868

6969
```python
70-
filter = "age > {age} AND city in {city}",​
70+
filter = "age > {age} and city in {city}",​
7171
filter_params = {"age": 25, "city": ["北京", "上海"]}​
7272

7373
```

0 commit comments

Comments
 (0)