Skip to content

Commit

Permalink
Fixes _handle_field_filter node_alias bug
Browse files Browse the repository at this point in the history
  • Loading branch information
alexthomas93 committed Feb 20, 2025
1 parent 4ce3b56 commit 0c79f8e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/neo4j_graphrag/filters.py
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,7 @@ def _handle_field_filter(
low, high = filter_value
param_name_low = param_store.add(low)
param_name_high = param_store.add(high)
query_snippet = f"${param_name_low} <= {DEFAULT_NODE_ALIAS}.{Operator.safe_field_cypher(field)} <= ${param_name_high}"
query_snippet = f"${param_name_low} <= {node_alias}.{Operator.safe_field_cypher(field)} <= ${param_name_high}"
return query_snippet
# all the other operators are handled through their own classes:
native_op_class = COMPARISONS_TO_NATIVE[operator]
Expand Down

0 comments on commit 0c79f8e

Please sign in to comment.