Results 290 comments of groot

I add an index type "Trie" in pr #336. To create index for varchar field: ``` CreateIndexParam indexParam = CreateIndexParam.newBuilder() .withCollectionName(randomCollectionName) .withFieldName("str_field") .withIndexName("stridx") .withIndexType(IndexType.TRIE) .withSyncMode(Boolean.TRUE) .withSyncWaitingInterval(500L) .withSyncWaitingTimeout(30L) .build(); R createIndexR...

int8/int16/int32/int64/float/double 这些字段目前不支持建索引。 如果将来支持建索引的话,会有对应的IndexType。 如果现在对int8/int16/int32/int64/float/double 这些字段调用CreateIndex(),是没有效果的。

In milvus, inner product(MetricType.IP) metric is for cosine similarity. ``` SearchParam searchParam = SearchParam.newBuilder() .withCollectionName(randomCollectionName) .withMetricType(MetricType.IP) ...... ``` By IP metric, the search() returns results with the distance arranged from...

v1.x doesn't support fields. Only v2.0 can support multi fields.

说实话我没用过grcpc-client-spring-boot-autoconfigure,看报错的提示像是访问不到那个地址。 看一下下面这个trouble-shooting是否能有帮助: https://yidongnan.github.io/grpc-spring-boot-starter/en/trouble-shooting.html

> 我解决了我项目中的这个问题,修改milvus-sdk-java中ManagedChannelBuilder创建链接的方式,将原来的forAddress修改为forTarget就可以了。感谢支持。 你这个改动 connectParam.getTarget() 这里返回的是一个地址字符串么?是不是 “10.24.16.36:19530” 这样的字符串?

> > > 我解决了我项目中的这个问题,修改milvus-sdk-java中ManagedChannelBuilder创建链接的方式,将原来的forAddress修改为forTarget就可以了。感谢支持。 > > > > > > 你这个改动 connectParam.getTarget() 这里返回的是一个地址字符串么?是不是 “10.24.16.36:19530” 这样的字符串? > > ``` > @Bean > public MilvusServiceClient milvusServiceClient() { > ConnectParam connectParam = ConnectParam.newBuilder().withTarget("static://10.24.16.36:19530").build();...

"Column count doesn't match value count at row 1"这个错误是mysql抛出的。看起来是说输入的列数跟表的列数不一致。 Milvus在mysql中创建了Tables表,用来记录collection。pymilvus客户端调用create_collection的时候,milvus会构造一个SQL语句,大约是 INSERT INTO Tables VALUES(xxx, xx, xxxx, xxx ...),在这个文件的391行可以看到:https://github.com/milvus-io/milvus/blob/1.1/core/src/db/meta/MySQLMetaImpl.cpp ``` statement

我用mysql试了一下,先创建一个table, 第三列有默认值: `create table Tables(id int NOT NULL, age int NOT NULL, kk int DEFAULT 10);` 然后插入,只给前两列的值: `insert into Tables values(1, 2);` 也得到了一样的错误: `ERROR 1136 (21S01): Column count doesn't match...

或者你试着把这个文件里https://github.com/milvus-io/milvus/blob/1.1/core/src/db/meta/MySQLMetaImpl.cpp 三处INSERT改掉,分别是: 391行 "INSERT INTO "