graphiti/graphiti_core/search
TheEpTic 735b020624
BUG FIX: Fix trailing AND in edge_search_filter_query_constructor Cypher query (#541)
Fix trailing AND in edge_search_filter_query_constructor Cypher query

Corrected the edge_search_filter_query_constructor function to prevent
trailing AND operators in generated Cypher queries, which caused
Neo.ClientError.Statement.SyntaxError. Changed condition from
`j != len(and_filter_query) - 1` to `j != len(and_filters) - 1` for
valid_at, invalid_at, created_at, and expired_at filter blocks. Also
fixed outer loop condition to use `len(filters.<field>)` instead of
`len(or_list)`. Ensures valid Cypher syntax for single DateFilter cases.

Co-authored-by: TheEpTic <326774+TheEpTic@users.noreply.github.com>
2025-05-29 12:55:16 -04:00
..
__init__.py chore: Fix packaging (#38) 2024-08-25 10:07:50 -07:00
search.py Mmr optimizations (#481) 2025-05-12 22:30:23 -04:00
search_config.py add episode scope to search (#362) 2025-04-15 19:27:56 -04:00
search_config_recipes.py add episode scope to search (#362) 2025-04-15 19:27:56 -04:00
search_filters.py BUG FIX: Fix trailing AND in edge_search_filter_query_constructor Cypher query (#541) 2025-05-29 12:55:16 -04:00
search_helpers.py add episode scope to search (#362) 2025-04-15 19:27:56 -04:00
search_utils.py Edge type search (#537) 2025-05-27 13:16:28 -04:00