-
fix(falkordb): make default group_id valid and escape it for RediSearch (#1549)
发布于
2026-06-08 13:11:59 +00:00 The FalkorDB default group_id was '_' (backslash-underscore), but
validate_group_id (added to harden search against injection) rejects
backslashes. As a result, add_episode/search with the default group_id
failed with GroupIdValidationError once search re-validated the group_ids,
breaking the FalkorDB quickstart out of the box.Use a clean default group_id of '' (passes validation) and escape
non-alphanumeric characters in group_ids when building RediSearch fulltext
queries, since RediSearch treats '' and '-' as token separators/operators
(an unescaped '_' produces a fulltext syntax error). The escaping is applied
in both FalkorDriver.build_fulltext_query (active path) and the driver-ops
_build_falkor_fulltext_query.Verified by running examples/quickstart/quickstart_falkordb.py end-to-end
with the default group_id (add episodes + hybrid search) against FalkorDB.Co-authored-by: Claude Opus 4.8 (1M context) noreply@anthropic.com
下载附件