Skip to content

[BUG] Post search filter logic doesn't re-validate the vector field. #465

@allenss-amazon

Description

@allenss-amazon

Describe the bug
The post-search filter logic which ensures that false-positive hits in the index are re-validated against current data doesn't include checking whether the vector field has been modified.

To Reproduce
Arrange to modify a vector field of a key after it's been searched but before the result filtering logic has completed. You'll get the wrong answer.

Expected behavior
The post-search filter logic should validate that the vector field is still the same and if not, re-score the vector and potentially modify it's position in the distance table.

Environment

Additional information to reproduce the failure

  • Valkey Search Module Version
  • Valkey Core Version

Additional context
Add any other context about the problem here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions