Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions server/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,7 @@ async def _fallback_search_records(query: str, limit: int) -> list[dict]:
MATCH (n)
WHERE any(key IN keys(n)
WHERE n[key] IS NOT NULL
AND NOT key IN ['embedding', 'vector']
AND toLower(toString(n[key])) CONTAINS $query)
OPTIONAL MATCH (n)-[r]-(m)
WITH n,
Expand Down Expand Up @@ -230,6 +231,7 @@ async def _fallback_query_records(
AND ($name IS NULL
OR any(key IN keys(n)
WHERE n[key] IS NOT NULL
AND NOT key IN ['embedding', 'vector']
AND toLower(toString(n[key])) CONTAINS $name))
OPTIONAL MATCH (n)-[r]-(m)
WITH n,
Expand Down