Skip to content

Boolean field queries fail on Redis 8 #729

@abrookins

Description

@abrookins

Problem

Boolean field queries return incorrect results on Redis 8, ignoring the boolean filter entirely. The same queries work correctly on Redis 7.4.x.

Example

filter_expression = (MyModel.flag == False)
query = MyModel.find(filter_expression).sort_by("-created_at")
# On Redis 8: Returns ALL records including flag=True
# On Redis 7.4: Correctly filters to only flag=False records

Impact

This is a major compatibility issue for users on Redis 8 (released May 2025).

Related

Investigation Needed

  • Determine if Redis 8 changed boolean indexing behavior
  • Check if our TAG-based boolean indexing needs adjustment for Redis 8
  • May need to test with different boolean storage formats

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions