You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
withDimension() is for vector field, no need to specify for array field.
withIsDynamic() is for dynamic field, no need to specify for array field.
withMaxLength() is for varchar field, no need to specify for array field.
withPartitionKey() is for partition key field, only varchar/boolean/numeric fields can be partition key, no need to specify for array field.
withTypeParams() is a low-level method used by withMaxLength/withMaxCapacity/withDimension, normally no need to call this method.
To declare an array field, withName/withDataType/withMaxCapacity/withElementType must be specified:
FieldType tagIdsField = FieldType.newBuilder()
.withAutoID(false)
.withDataType(DataType.Array)
.withDescription("tagIds")
.withDimension(0)
.withIsDynamic(false)
.withMaxLength(0)
.withName("tagIds")
.withPartitionKey(false)
.withPrimaryKey(false)
.withTypeParams( typeParams)
.withElementType(DataType.Int32)
.build();
The text was updated successfully, but these errors were encountered: