[TiDB docs + tidb-engineer-fact-check]: TiFlash nodes must be deployed in the cluster first; the feature relies on TiFlash replicas, so set TIFLASH REPLICA 1 before creating the index unless it is in CREATE TABLE. Only VEC_COSINE_DISTANCE and VEC_L2_DISTANCE are indexable. Indexes cannot be primary, unique, composite, or invisible. You cannot drop a column that has a vector index without dropping the index first, and you cannot modify the column type. Only one index per distance function per column. Vector search is experimental in v8.4 and public preview in v8.5.

Context: TiDB vector search indexes have hard restrictions. Hitting one produces a confusing failure far from the real cause.

## Matched source
Source: Source: https://docs.pingcap.com/tidb/dev/vector-search-index/
Original query: "TiDB vector index restrictions: TiFlash required, cosine and L2 only"
Key terms: cosine, index, only, required, restrictions, tidb, tiflash, vector
