dragonflydb / dragonfly

A modern replacement for Redis and Memcached
https://www.dragonflydb.io/
Other
25.96k stars 954 forks source link

Boolean search not working, index not working #4129

Open canparam opened 1 week ago

canparam commented 1 week ago

Describe the bug When I index a boolean field with TAG it doesn't work.

To Reproduce Steps to reproduce the behavior:

  1. Insert records using JSON.SET j1 . '{"active":true,"id":1}'
  2. Creat index FT.CREATE test ON JSON PREFIX 1 j SCHEMA $.id AS id NUMERIC $.active AS active TAG
  3. Query records using ft.search test '*'
  4. Result image

Server

redis_version:6.2.11 dragonfly_version:df-v1.25.1

at version v1.23.0 everything still works fine

image

adiholden commented 1 week ago

@canparam thank you for reporting the bug