create_sparse_vector

Add a named sparse vector to an existing collection.

Example

up:
  - op: create_sparse_vector
    collection: products
    name: keywords
    spec:
      on_disk: true
      full_scan_threshold: 5000

Fields

FieldTypeRequiredDescription
collectionstringyesCollection to add the vector to.
namestringyesSparse vector name (must be unique within the collection).
specSparseVectorSpecyesSparse-vector configuration.

spec fields

FieldTypeDescription
on_diskboolStore the sparse index on disk.
full_scan_thresholduintPostings-list size below which Qdrant performs a full scan instead of using the index.

Reversibility

Auto-reversible → delete_vector. The downgrade drops any sparse vectors stored under this name.