Skip to content

Commit 2cacbe6

Browse files
add example
1 parent aec7c64 commit 2cacbe6

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

volcengine-java-sdk-vikingdb/src/main/java/com/volcengine/vikingdb/examples/vector/collection/TestCreateVikingdbCollectionWithVector.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,9 @@ public static void main(String[] args) {
3636
new FieldForCreateVikingdbCollectionInput().fieldName("f_float_1").fieldType(FieldForCreateVikingdbCollectionInput.FieldTypeEnum.FLOAT32),
3737
new FieldForCreateVikingdbCollectionInput().fieldName("f_list_string_1").fieldType(FieldForCreateVikingdbCollectionInput.FieldTypeEnum.LIST_STRING_),
3838
new FieldForCreateVikingdbCollectionInput().fieldName("f_vector").fieldType(FieldForCreateVikingdbCollectionInput.FieldTypeEnum.VECTOR).dim(4), // 稠密向量字段,并设置维度
39-
new FieldForCreateVikingdbCollectionInput().fieldName("f_sparse_vector").fieldType(FieldForCreateVikingdbCollectionInput.FieldTypeEnum.SPARSE_VECTOR) // 稀疏向量字段
39+
new FieldForCreateVikingdbCollectionInput().fieldName("f_sparse_vector").fieldType(FieldForCreateVikingdbCollectionInput.FieldTypeEnum.SPARSE_VECTOR), // 稀疏向量字段
40+
new FieldForCreateVikingdbCollectionInput().fieldName("f_date_time").fieldType(FieldForCreateVikingdbCollectionInput.FieldTypeEnum.DATE_TIME),
41+
new FieldForCreateVikingdbCollectionInput().fieldName("f_geo_point").fieldType(FieldForCreateVikingdbCollectionInput.FieldTypeEnum.GEO_POINT)
4042
));
4143

4244
try {

0 commit comments

Comments
 (0)