Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Index_UpdateVector function to the LLAPI #24

Open
ashtul opened this issue Jul 26, 2021 · 0 comments
Open

Add Index_UpdateVector function to the LLAPI #24

ashtul opened this issue Jul 26, 2021 · 0 comments
Labels
enhancement New feature or request

Comments

@ashtul
Copy link
Contributor

ashtul commented Jul 26, 2021

The function will have 3 return values.

  1. Old_id and vector match.
  2. Old_id matches, vector does not match.
  3. 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);

@ashtul ashtul added the enhancement New feature or request label Jul 26, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant