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
'tail': f'CREATE INDEX vector_index_{similarity} IF NOT EXISTS ON {collection}(size, brand, {vector_field} VECTOR) WITH {vector_definition}',
390
-
'mid': f'CREATE INDEX vector_index_{similarity} IF NOT EXISTS ON {collection}(size, {vector_field} VECTOR, brand) WITH {vector_definition}',
391
-
'lead': f'CREATE INDEX vector_index_{similarity} IF NOT EXISTS ON {collection}({vector_field} VECTOR, size, brand) WITH {vector_definition}',
393
+
'tail': f'CREATE INDEX vector_index_{similarity} IF NOT EXISTS ON {collection}(size, brand, {vector_field}{vector_type}VECTOR) WITH {vector_definition}',
394
+
'mid': f'CREATE INDEX vector_index_{similarity} IF NOT EXISTS ON {collection}(size, {vector_field}{vector_type}VECTOR, brand) WITH {vector_definition}',
395
+
'lead': f'CREATE INDEX vector_index_{similarity} IF NOT EXISTS ON {collection}({vector_field}{vector_type}VECTOR, size, brand) WITH {vector_definition}',
index_query=f'CREATE VECTOR INDEX {custom_name} IF NOT EXISTS ON {collection}({vector_field} VECTOR) INCLUDE({custom_index_fields}) WITH {vector_definition}'
409
+
index_query=f'CREATE VECTOR INDEX {custom_name} IF NOT EXISTS ON {collection}({vector_field}{vector_type}VECTOR) INCLUDE({custom_index_fields}) WITH {vector_definition}'
406
410
else:
407
-
index_query=f'CREATE VECTOR INDEX vector_bhive_index_{similarity}_custom IF NOT EXISTS ON {collection}({vector_field} VECTOR) INCLUDE({custom_index_fields}) WITH {vector_definition}'
411
+
index_query=f'CREATE VECTOR INDEX vector_bhive_index_{similarity}_custom IF NOT EXISTS ON {collection}({vector_field}{vector_type}VECTOR) INCLUDE({custom_index_fields}) WITH {vector_definition}'
index_query=f'CREATE VECTOR INDEX {custom_name} IF NOT EXISTS ON {collection}({vector_field} VECTOR) WITH {vector_definition}'
415
+
index_query=f'CREATE VECTOR INDEX {custom_name} IF NOT EXISTS ON {collection}({vector_field}{vector_type}VECTOR) WITH {vector_definition}'
412
416
else:
413
-
index_query=f'CREATE VECTOR INDEX vector_bhive_index_{similarity}_custom IF NOT EXISTS ON {collection}({vector_field} VECTOR) WITH {vector_definition}'
417
+
index_query=f'CREATE VECTOR INDEX vector_bhive_index_{similarity}_custom IF NOT EXISTS ON {collection}({vector_field}{vector_type}VECTOR) WITH {vector_definition}'
414
418
else:
415
-
index_query=f'CREATE VECTOR INDEX vector_bhive_index_{similarity} IF NOT EXISTS ON {collection}({vector_field} VECTOR) INCLUDE(size, brand) WITH {vector_definition}'
419
+
index_query=f'CREATE VECTOR INDEX vector_bhive_index_{similarity} IF NOT EXISTS ON {collection}({vector_field}{vector_type}VECTOR) INCLUDE(size, brand) WITH {vector_definition}'
416
420
ifuse_partition:
417
421
index_query=index_query.split("WITH")[0] +f" PARTITION BY HASH(meta().id) WITH "+index_query.split("WITH")[1]
0 commit comments