ALTER INDEX

Use the ALTER INDEX SQL statement to modify an existing hybrid vector index.

Purpose

To make changes to hybrid vector indexes.

Syntax

ALTER INDEX [schema.]index_name REBUILD
  PARAMETERS(
      ['UPDATE VECTOR INDEX [VECTOR_IDXTYPE HNSW/IVF]']
      ['REPLACE vectorizer vectorizer_pref_name']
      )
  [PARALLEL n];

Note:

[schema.]index_name

Specifies the name of the hybrid vector index that you want to modify.

PARAMETERS(UPDATE VECTOR INDEX)

Rebuilds both text part and vector part of the hybrid vector index. For text part, the rebuild uses the preferences which are specified during the index creation or the default preferences if not specified. For the vector part (chunking, embedding and vector index creation), rebuild uses the new vectorizer preference specified in the ALTER INDEX REBUILD syntax. See CREATE HYBRID VECTOR INDEX for detailed information on the preferences set during the index creation.

PARAMETERS(REPLACE vectorizer vectorizer_pref_name)

Recreates only the vector index part of a hybrid vector index with the specified vectorizer preference settings.

Note: For non HVI index, replace operation would throw an error, as it cannot replace something that was not present.

PARALLEL

Specifies parallel indexing, as described for the CREATE HYBRID VECTOR INDEX statement.

For detailed information on the PARALLEL clause, see CREATE HYBRID VECTOR INDEX.

Examples

Here are some examples on how you can modify existing hybrid vector indexes:

See Also: