The function will have 3 return values.
Old_id and vector match.
Old_id matches, vector does not match.
Old_id does not match regardless of the vector match.
The function will be used by RediSearch when a document gets updated in order to avoid deletion and addition of a vector which are costly.
Suggestion for a function signature:
typedef int (*Index_UpdateVector)(VecSimIndex* index, const void* blob, size_t old_id, size_t new_id);