diff --git a/site/en/menuStructure/en.json b/site/en/menuStructure/en.json index 7c3b8db04..85e2394b9 100644 --- a/site/en/menuStructure/en.json +++ b/site/en/menuStructure/en.json @@ -701,22 +701,59 @@ "order": 5, "children": [] }, + { + "label": "Filtering", + "id": "filtering", + "order":6, + "children": [ + { + "label": "Filtering Explained", + "id": "boolean.md", + "order": 0, + "children": [] + }, + { + "label": "Basic Operators", + "id": "basic-operators.md", + "order": 1, + "children": [] + }, + { + "label": "Filtering Templating", + "id": "filtering-templating.md", + "order": 2, + "children": [] + }, + { + "label": "JSON Operators", + "id": "json-operators.md", + "order": 3, + "children": [] + }, + { + "label": "Array Operators", + "id": "array-operators.md", + "order": 4, + "children": [] + } + ] + }, { "label": "Full Text Search", "id": "full-text-search.md", - "order": 6, + "order": 7, "children": [] }, { "label": "Text Match", "id": "keyword-match.md", - "order": 7, + "order": 8, "children": [] }, { "label": "Search Iterators", "id": "with-iterators.md", - "order": 8, + "order": 9, "children": [] }, { @@ -725,16 +762,10 @@ "order": 9, "children": [] }, - { - "label": "Metadata Filtering", - "id": "boolean.md", - "order": 14, - "children": [] - }, { "label": "Reranking", "id": "reranking.md", - "order": 15, + "order": 10, "children": [] } ] diff --git a/site/en/userGuide/search-query-get/boolean/boolean.md b/site/en/userGuide/search-query-get/boolean/boolean.md index 9d6df03b1..1e7fb6154 100644 --- a/site/en/userGuide/search-query-get/boolean/boolean.md +++ b/site/en/userGuide/search-query-get/boolean/boolean.md @@ -16,7 +16,7 @@ Milvus supports several basic operators for filtering data:​ - **Range Filters**: `IN` and `LIKE` help match specific value ranges or sets.​ -- **Arithmetic Operators**: `+`, `-`, `*`, `/`, `%`, and `**` are used for calculations involving numeric fields.​ +- **Arithmetic Operators**: `+`, `-`, `*`, `/`, `%`, and `` are used for calculations involving numeric fields.​ - **Logical Operators**: `AND`, `OR`, and `NOT` or '&&', '||', '~', '!' combine multiple conditions into complex expressions.​ @@ -82,7 +82,7 @@ Milvus provides advanced filtering operators for specific data types, such as JS Milvus offers advanced operators for querying JSON fields, enabling precise filtering within complex JSON structures:​ -`**JSON_CONTAINS(identifier, jsonExpr)**`: Checks if a JSON expression exists in the field.​ +`JSON_CONTAINS(identifier, jsonExpr)`: Checks if a JSON expression exists in the field.​ ```python # JSON data: {"tags": ["electronics", "sale", "new"]}​ @@ -90,7 +90,7 @@ filter='json_contains(tags, "sale")'​ ``` -`**JSON_CONTAINS_ALL(identifier, jsonExpr)**`: Ensures all elements of the JSON expression are present.​ +`JSON_CONTAINS_ALL(identifier, jsonExpr)`: Ensures all elements of the JSON expression are present.​ ```python # JSON data: {"tags": ["electronics", "sale", "new", "discount"]}​ @@ -98,7 +98,7 @@ filter='json_contains_all(tags, ["electronics", "sale", "new"])'​ ``` -`**JSON_CONTAINS_ANY(identifier, jsonExpr)**`: Filters for entities where at least one element exists in the JSON expression.​ +`JSON_CONTAINS_ANY(identifier, jsonExpr)`: Filters for entities where at least one element exists in the JSON expression.​ ```python # JSON data: {"tags": ["electronics", "sale", "new"]}​ @@ -112,28 +112,28 @@ For more details on JSON operators, refer to [​JSON Operators](json-operators. Milvus provides advanced filtering operators for array fields, such as `ARRAY_CONTAINS`, `ARRAY_CONTAINS_ALL`, `ARRAY_CONTAINS_ANY`, and `ARRAY_LENGTH`, which allow fine-grained control over array data:​ -`**ARRAY_CONTAINS**`: Filters entities containing a specific element.​ +`ARRAY_CONTAINS`: Filters entities containing a specific element.​ ```python filter="ARRAY_CONTAINS(history_temperatures, 23)"​ ``` -`**ARRAY_CONTAINS_ALL**`: Filters entities where all elements in a list are present.​ +`ARRAY_CONTAINS_ALL`: Filters entities where all elements in a list are present.​ ```python filter="ARRAY_CONTAINS_ALL(history_temperatures, [23, 24])"​ ``` -`**ARRAY_CONTAINS_ANY**`: Filters entities containing any element from the list.​ +`ARRAY_CONTAINS_ANY`: Filters entities containing any element from the list.​ ```python filter="ARRAY_CONTAINS_ANY(history_temperatures, [23, 24])"​ ``` -`**ARRAY_LENGTH**`: Filters based on the length of the array.​ +`ARRAY_LENGTH`: Filters based on the length of the array.​ ```python filter="ARRAY_LENGTH(history_temperatures) < 10"​ @@ -144,7 +144,7 @@ For more details on array operators, see [​ARRAY Operators](array-operators.md ### VARCHAR field-specific operators​ -The `**Text_Match**` operator allows precise document retrieval based on specific query terms. It is particularly useful for filtered searches that combine scalar filters with vector similarity searches. Unlike semantic searches, Text Match focuses on exact term occurrences.​ +The `Text_Match` operator allows precise document retrieval based on specific query terms. It is particularly useful for filtered searches that combine scalar filters with vector similarity searches. Unlike semantic searches, Text Match focuses on exact term occurrences.​ Milvus uses Tantivy to support inverted indexing and term-based text search. The process involves:​