Expand description
Rewrite SEARCH <coll> USING VECTOR(<field>, ARRAY[...], <k>) to the
canonical SELECT * FROM <coll> ORDER BY vector_distance(<field>, ARRAY[...]) LIMIT <k>.
<field> may be omitted (and the third arg becomes the limit). When the
collection has a single declared vector column the planner resolves the
field; otherwise vector_distance rejects the call with a typed error.