diff --git a/milvus_cli/scripts/milvus_cli.py b/milvus_cli/scripts/milvus_cli.py index bb663d0..e310de1 100644 --- a/milvus_cli/scripts/milvus_cli.py +++ b/milvus_cli/scripts/milvus_cli.py @@ -157,7 +157,7 @@ def connection(obj, showAll): except Exception as e: click.echo("No connections.") else: - click.echo(obj.showConnection(showAll=showAll)) + click.echo(obj.showConnection(False,showAll=showAll)) @show.command("loading_progress") @@ -926,7 +926,7 @@ def deletePartition(obj, collectionName, partition, timeout): "--collection-name", "collectionName", help="Collection name") -@click.option("-in", "--index-name", "Index name", help="Index name") +@click.option("-in", "--index-name", "indexName", help="Index name") @click.option( "-t", "--timeout", @@ -943,7 +943,7 @@ def deleteIndex(obj, collectionName, indexName, timeout): Example: - milvus_cli > delete index -c car + milvus_cli > delete index -c car -in indexName """ click.echo( "Warning!\nYou are trying to delete the index of collection. This action cannot be undone!\n" @@ -957,8 +957,7 @@ def deleteIndex(obj, collectionName, indexName, timeout): click.echo(f"Error occurred when get collection by name!\n{str(e)}") else: result = obj.dropIndex(collectionName, indexName, timeout) - click.echo("Drop index successfully!") if not result else click.echo( - "Drop index failed!") + click.echo(result) @deleteObject.command("user") diff --git a/milvus_cli/utils.py b/milvus_cli/utils.py index 2410486..65c7daa 100644 --- a/milvus_cli/utils.py +++ b/milvus_cli/utils.py @@ -442,7 +442,6 @@ def search(self, collectionName, searchParameters, prettierFormat=True): def query(self, collectionName, queryParameters): collection = self.getTargetCollection(collectionName) - print(queryParameters) res = collection.query(**queryParameters) # return f"- Query results: {res}" if not len(res): @@ -589,7 +588,6 @@ def listCollectionAlias(self, collectionName, timeout=None): collection = self.getTargetCollection(collectionName) result = utility.list_aliases(collection.name, timeout=timeout) - print("alias==>", result) return result def loadBalance(self, diff --git a/setup.py b/setup.py index 545b8e4..280646c 100644 --- a/setup.py +++ b/setup.py @@ -5,7 +5,7 @@ setup( name="milvus_cli", - version="v0.3.1", + version="v0.3.2", author="Milvus Team", author_email="milvus-team@zilliz.com", url="https://github.com/zilliztech/milvus_cli",