Bug: Deletion of Descriptors isn't fully supported
- Dominant language
- C++
- Stars
- 93
- Forks
- 34
- PR merge metrics
- No merged PRs in 30d
Description
**Describe the bug**
As stated in [Wiki: Deletion Capabilities](https://github.com/IntelLabs/vdms/wiki/Deletion-Capabilities), the _deletion query allows a user to delete the content within VDMS that is associated with a find query (FindImage, FindEntity, FindDescriptor). Currently, descriptor deletion is NOT fully supported.
1. Metadata is deleted, descriptor is no longer returned in similarity search, but index is still present because the number of returned results are effected after deletion
2. This is visible in the **Filtering on metadata** section which starts on botton of page 26 of [vdms_latest.pdf](https://github.com/intel-innersource/libraries.databases.visual.vdms/files/14776579/vdms_latest.pdf). In the section, ID=2 is extracted and displayed. A search for K=3 NN using ID=2 vector as the query is performed and distances displayed. ID is them deleted and then we search again with K=5. You’ll see that only 4 results are returned but ID=2 is excluded.
**To Reproduce**
Steps to reproduce the behavior (as shown in attached document):
1. Add descriptors with unique property like ID
2. Complete similarity search using K
3. Find a descriptor within K using unique property and delete it
4. Re-run similarity search using K (Notice K-1 results are returned and deleted descriptor isn't present)
Contributor guide
Assessment
This issue has not been assessed yet.