New Features
Support AsyncIO (EXPERIMENTAL)
* feat: asyncio support by brcarry in https://github.com/milvus-io/pymilvus/pull/2459
Introducing the native asyncio client in PyMilvus: `AsyncMilvusClient`. While only a subset of APIs is currently supported, this marks a significant step forward for PyMilvus. Enjoy exploring it!
python
import asyncio
from pymilvus import MilvusClient, AsyncMilvusClient, DataType
async def main():
URI = "./milvus.db"
async_client = AsyncMilvusClient(uri=URI)
await async_client.create_collection("async_example", dimension=768)
await async_client.drop_collection("async_example")
if __name__ == "__main__":
asyncio.run(main())
Other new features
* enhance: grant/revoke v2 optional db and collection params by shaoting-huang in https://github.com/milvus-io/pymilvus/pull/2392
* feat: support recalls field in SearchResult by chasingegg in https://github.com/milvus-io/pymilvus/pull/2389
* feature: support milvus-client iterator by MrPresent-Han in https://github.com/milvus-io/pymilvus/pull/2465
* enhance: add use_database by czs007 in https://github.com/milvus-io/pymilvus/pull/2493
Enhancements
* extend unlimted offset for query iterator(2418) by MrPresent-Han in https://github.com/milvus-io/pymilvus/pull/2420
* enhance: alterindex & altercollection supports altering properties by JsDove in https://github.com/milvus-io/pymilvus/pull/2423
* enhance: rbac privilege group and grant v2 examples by shaoting-huang in https://github.com/milvus-io/pymilvus/pull/2426
* enhance: alterdatabase support delete property by JsDove in https://github.com/milvus-io/pymilvus/pull/2439
* enhance: add search_group_by example for milvus-client(2481) by MrPresent-Han in https://github.com/milvus-io/pymilvus/pull/2483
* fix: Support hybrid search with expression template by xiaocai2333 in https://github.com/milvus-io/pymilvus/pull/2490
* enhance: Add example for milvus client about expression template by xiaocai2333 in https://github.com/milvus-io/pymilvus/pull/2445
* enhance: createdatabase support properties by JsDove in https://github.com/milvus-io/pymilvus/pull/2450
* enhance: refine search_group_by_example(2481) by MrPresent-Han in https://github.com/milvus-io/pymilvus/pull/2485
Bug fixes
* fix: Unify logger and correct logging settings (2397) by XuanYang-cn in https://github.com/milvus-io/pymilvus/pull/2402
* fix: fix list aliases rpc call and grant/revoke v2 by shaoting-huang in https://github.com/milvus-io/pymilvus/pull/2404
* fix: Add is_clustering params for get_compaction_plans in orm by xiaocai2333 in https://github.com/milvus-io/pymilvus/pull/2429
* fix: fix describe database return type by JsDove in https://github.com/milvus-io/pymilvus/pull/2453
* fix: resolve conflicts and update connections.py by brcarry in https://github.com/milvus-io/pymilvus/pull/2462
* fix: add `authorization_interceptor` and `db_interceptor` to async channel by brcarry in https://github.com/milvus-io/pymilvus/pull/2472
* fix: ensure `create_index` and `load_collection` are fully completed by brcarry in https://github.com/milvus-io/pymilvus/pull/2477
**Full Changelog**: https://github.com/milvus-io/pymilvus/compare/v2.4.10...v2.4.11