mirror of
https://gitee.com/milvus-io/milvus.git
synced 2025-12-28 22:45:26 +08:00
Delete index field for create collection
Signed-off-by: cai.zhang <cai.zhang@zilliz.com>
This commit is contained in:
parent
50a5f97421
commit
1a96ef6837
@ -235,7 +235,7 @@ def gen_single_filter_fields():
|
||||
def gen_single_vector_fields():
|
||||
fields = []
|
||||
for data_type in [DataType.FLOAT_VECTOR, DataType.BINARY_VECTOR]:
|
||||
field = {"name": data_type.name, "type": data_type, "params": {"dim": default_dim}, "indexes": [{"metric_type": "L2"}]}
|
||||
field = {"name": data_type.name, "type": data_type, "params": {"dim": default_dim}}
|
||||
fields.append(field)
|
||||
return fields
|
||||
|
||||
@ -246,8 +246,7 @@ def gen_default_fields(auto_id=True):
|
||||
{"name": "int64", "type": DataType.INT64},
|
||||
{"name": "float", "type": DataType.FLOAT},
|
||||
{"name": default_float_vec_field_name, "type": DataType.FLOAT_VECTOR,
|
||||
"params": {"dim": default_dim},
|
||||
"indexes": [{"metric_type": "L2"}]},
|
||||
"params": {"dim": default_dim}},
|
||||
],
|
||||
"segment_row_limit": default_segment_row_limit,
|
||||
"auto_id": auto_id
|
||||
@ -260,7 +259,7 @@ def gen_binary_default_fields(auto_id=True):
|
||||
"fields": [
|
||||
{"name": "int64", "type": DataType.INT64},
|
||||
{"name": "float", "type": DataType.FLOAT},
|
||||
{"name": default_binary_vec_field_name, "type": DataType.BINARY_VECTOR, "params": {"dim": default_dim}, "indexes": [{"metric_type": "JACCARD"}]}
|
||||
{"name": default_binary_vec_field_name, "type": DataType.BINARY_VECTOR, "params": {"dim": default_dim}}
|
||||
],
|
||||
"segment_row_limit": default_segment_row_limit,
|
||||
"auto_id": auto_id
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user