Skip to content

Commit 059167c

Browse files
authored
Merge pull request #1013 from liyun95/master
update multi_analyzer_params in add_field
2 parents 461494c + 6333dfb commit 059167c

File tree

1 file changed

+18
-0
lines changed
  • API_Reference/pymilvus/v2.5.x/MilvusClient/CollectionSchema

1 file changed

+18
-0
lines changed

API_Reference/pymilvus/v2.5.x/MilvusClient/CollectionSchema/add_field.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,24 @@ add_field(
172172

173173
- Lists filters to refine tokens produced by the tokenizer, with options for built-in filters and custom filters. For more information, refer to [Alphanumonly Filter](https://milvus.io/docs/alphanumonly-filer.md) and others.
174174

175+
- **multi_analyzer_params** (*dict*)
176+
177+
Configures language-specific text analyzers for multilingual collections. This parameter enables the system to apply different analyzers to documents based on their language, significantly improving text search accuracy across multiple languages. For more information, refer to [Multi-language Analyzers](multi-language-analyzers.md).
178+
179+
```python
180+
multi_analyzer_params = {
181+
"analyzers": {
182+
"<analyzer_name>": <analyzer_config>,
183+
"<analyzer_name>": <analyzer_config>,
184+
"default": <default_analyzer_config> # Required
185+
},
186+
"by_field": "<language_field_name>",
187+
"alias": { # Optional
188+
"<alias>": "<analyzer_name>"
189+
}
190+
}
191+
```
192+
175193
- **enable_analyzer** (*bool*)
176194

177195
Whether to enable text analysis for the specified `VARCHAR` field. When set to `True`, it instructs Milvus to use a text analyzer, which tokenizes and filters the text content of the field.

0 commit comments

Comments
 (0)